/build/static/layout/Breadcrumb_cap_w.png

Add file to %APPDATA%

Hello,

From a software supplier, I received a MSI. This MSI works file, but during the installation I want to copy the licensefile.
The licensefile should be in the %APPDATA% folder, but I am installing the software with the system account.
The current user won't get a licensed version of the software.

How can I insert the file in the existing MSI by forcing the repaire mode while clicking the applications executable?

0 Comments   [ + ] Show comments

Answers (7)

Posted by: MARIN 16 years ago
Orange Senior Belt
0
So the licensefile should be in the same component as the shortcut?
Posted by: Inabus 16 years ago
Second Degree Green Belt
0
Nope, make a new component and add the file to that component which will install to the %APPDATA% folder.

Also check out the post linked above as you may need to create a HKCU dummy key and set that as the key path instead to get it to self repair correctly. Having never done it myself im just going with my gut feelings and what that post said.

Paul
Posted by: jmcfadyen 16 years ago
5th Degree Black Belt
0
I would recommend getting a naming solution for placement of your dummy keys.

something along the lines of this

HKCU\Software\Packages\[ProductName]\ValidationFix_[ComponentName]

trust me it will make life easier in the future.
Posted by: MARIN 16 years ago
Orange Senior Belt
0
I created a new component and added a dummykey, but there are 8 features.
I guess the component had to be in the same feature as the executable?
Posted by: AngelD 16 years ago
Red Belt
0
Have the component in the same feature as the component holding the entrypoint (ex shortcut) or in the top feature.
Posted by: MARIN 16 years ago
Orange Senior Belt
0
Thanks for all the replies.
I figured it out. I forgot the make the shortcut advertised.
Posted by: Inabus 16 years ago
Second Degree Green Belt
0
If I understand you correctly you would add the file in the %APPDATA% folder and make it a key file, in its own component.


When a new user logs in and executes the application via the shortcut the program will do a check of all key files and realise that 1 is missing and initiate a repair, thus putting the license file into the correct location for that user.

Do all this via a Transform btw.

Paul

PS. May want to check out http://itninja.com/question/how-do-you-roll-out-new-machines?7911 as well as this points to something your trying to do afink.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ