Hi All,

I want to copy certain files and folders during installation on HOMEDRIVE (H:\) The client doesnt want this to be hardcoded in the package.

I have thought of using AppSearch to read value from the registry HKEY_CURRENT_USER\Volatile Environment\HOMEDRIVE, store its value as a property and use it to install files accordingly. However, I am not sure if this is the right approach and if this will work in the live environment.

I have also gone through the posts related to this on this site but dint not find anything that helps me.

Can someone please guide me in the correct direction.

Thanks
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
I have thought of using AppSearch to read value from the registry HKEY_CURRENT_USER\Volatile Environment\HOMEDRIVE, store its value as a property and use it to install files accordingly. However, I am not sure if this is the right approach and if this will work in the live environment.

Beware the following pitfall with this approach: Depending on your distribution mechanism for the package, installation might actually be done under LocalSystem credentials, so you won't in fact be accessing the logged-in user's data.

This to me sound like a job for advertisement and self-healing, combined with a CA, or an Active Setup solution.

Rgds,

PJ
Answered 04/20/2010 by: pjgeutjens
Red Belt

Please log in to comment
0
Pieter is right you'll need to use

advertisement and self-healing, combined with a CA, or an Active Setup solution


or you could change the shortcut for the app and use a wrapper that copies the files to the users H: drive before launching the applications.
Answered 04/20/2010 by: timmsie
Fourth Degree Brown Belt

Please log in to comment
0
Thankyou for your replies.

I want to install the files through MSI itself so wont be using wrappers to do the same, although a good idea.

I am thinking of using CAs but right now have no clue how to make this work.
Answered 04/20/2010 by: WiseNdMe
Senior Yellow Belt

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