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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
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).
Answered 02/25/2009 by: Foleymon
Orange Senior Belt

Please log in to comment
0
Hey thanks for responding.. HOMEPATH points to the profile folder, Iwant it to point to HOMEDIR... I havent read your article but will see if it will help me thanks.
Answered 02/25/2009 by: jayteeo
Purple Belt

Please log in to comment
0
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.
Answered 02/25/2009 by: jayteeo
Purple Belt

Please log in to comment
0
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?......
Answered 02/25/2009 by: aogilmor
Ninth Degree Black Belt

Please log in to comment
0
Good call. I should have been clearer in my qeustion.. how do you tell installer to copy a file to the root folder? I was really looking for confirmation that the steps I took were in the right direction. I think I'm close to a solution, will update you guys
Answered 02/25/2009 by: jayteeo
Purple Belt

Please log in to comment
0
K.. I figured it out. I made the mistake adding "HOMEDIR" in front of the folder name. I just omitted this at is implicit and it copied the files where I wanted it to.
Answered 02/25/2009 by: jayteeo
Purple Belt

Please log in to comment
0
see, sometimes stating the question clearly give you the answer dunnit? LOL....[:D]
Answered 02/25/2009 by: aogilmor
Ninth Degree Black Belt

Please log in to comment
Answer this question or Comment on this question for clarity