Copying files to system drive subfolder
Hey guys.. I'd like my MSI to create a folder on the system drive and copy a file into it. I'm in Feature Details - Files and I have added the files to copy to HOMEDIR\MySubFolder. Tested it and it didn't seem to work. I couldn't find anything on the subject of copying files outside your standard installer env variables. TIA.
0 Comments
[ + ] Show comments
Answers (7)
Please log in to answer
Posted by:
Foleymon
15 years ago
Sounds to me like you are trying to put files into the Current User's profile. If this is what your doing this may help to explain what you need to. This was posted up here by someone else and you may find it useful.
http://www.etlengineering.com/installer/repair.txt
Recording user entered properties for use during repair.
Create a component to hold the following entries:
In the Registry table, add the following for each property:
Registry Root Key Name Value Component
Repair001 2 SOFTWARE\MSIApps\[ProductName]\[PackageCode]\Properties USERPROPERTY1 [USERPROPERTY1] your choice!
In the AppSearch table, add the following for each property:
Property Signature_
USERPROPERTY1 Repair001
In the RegLocator table, add the following for each property:
Signature_ Root Key Name Type
Repair001 2 SOFTWARE\MSIApps\[ProductName]\[PackageCode]\Properties USERPROPERTY1 2
Make sure that the component you create to hold these entries has the "NOT Installed" condition applied to it, to ensure that the
values are only entered during first installation. This avoids the values changing accidentally during any subsequent repairs.
If entering information for more than one property, remember to increment "Repair001" to "Repair002" , etc
How this works:
1. During installation, the property value is stored in the registry using the registry table. The entry in the Registry column is not
important, but using the same name as used in the Signature_ column of the Reglocator table helps group the entries in a way that can
be figured out a few months later!!
2. During repair, the Appsearch action looks for USERPROPERTY1 by looking for the signature according to the process
described in MSI.CHM under the topic "Searching for Existing Applications, Files, Registry Entries or .ini File Entries".
It finds the signature in the Reglocator table, and accesses the key associated with this signature, retrieving the registry
value stated in the "Name" field (Reglocator table), and placing it in the Property named in the "Property" field (Appsearch table).
http://www.etlengineering.com/installer/repair.txt
Recording user entered properties for use during repair.
Create a component to hold the following entries:
In the Registry table, add the following for each property:
Registry Root Key Name Value Component
Repair001 2 SOFTWARE\MSIApps\[ProductName]\[PackageCode]\Properties USERPROPERTY1 [USERPROPERTY1] your choice!
In the AppSearch table, add the following for each property:
Property Signature_
USERPROPERTY1 Repair001
In the RegLocator table, add the following for each property:
Signature_ Root Key Name Type
Repair001 2 SOFTWARE\MSIApps\[ProductName]\[PackageCode]\Properties USERPROPERTY1 2
Make sure that the component you create to hold these entries has the "NOT Installed" condition applied to it, to ensure that the
values are only entered during first installation. This avoids the values changing accidentally during any subsequent repairs.
If entering information for more than one property, remember to increment "Repair001" to "Repair002" , etc
How this works:
1. During installation, the property value is stored in the registry using the registry table. The entry in the Registry column is not
important, but using the same name as used in the Signature_ column of the Reglocator table helps group the entries in a way that can
be figured out a few months later!!
2. During repair, the Appsearch action looks for USERPROPERTY1 by looking for the signature according to the process
described in MSI.CHM under the topic "Searching for Existing Applications, Files, Registry Entries or .ini File Entries".
It finds the signature in the Reglocator table, and accesses the key associated with this signature, retrieving the registry
value stated in the "Name" field (Reglocator table), and placing it in the Property named in the "Property" field (Appsearch table).
Posted by:
jayteeo
15 years ago
Posted by:
jayteeo
15 years ago
Posted by:
aogilmor
15 years ago
ORIGINAL: jayteeo
Just read that article, not what I'm looking for.
What I'd like to do is copy a file (included in the installation) to C:\MyFolder.
Dude, you really have to give a little more detail if you are serious about being helped. All we know is that a) you're trying to install files to HOMEDIR\MySubFolder and b) it doesn't work.
Not a lot to go on. [:@]
Surely you've been around here long enough to know about logging. So?......
Posted by:
jayteeo
15 years ago
Posted by:
jayteeo
15 years ago
Posted by:
aogilmor
15 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.