Reg value set in package not applying
Help needed please,
I'm setting a value in HKEY_Local_Machine in my package (appliying via mst to vendor msi). I'm setting a value of a Key to TRUE.
When installing the application the value of the Key is blank, any ideas why my TRUE value is not being applied?
Cheers
I'm setting a value in HKEY_Local_Machine in my package (appliying via mst to vendor msi). I'm setting a value of a Key to TRUE.
When installing the application the value of the Key is blank, any ideas why my TRUE value is not being applied?
Cheers
0 Comments
[ + ] Show comments
Answers (7)
Please log in to answer
Posted by:
Rheuvel
14 years ago
Run the install again with logging (/lv* <path to logfile>) and check the log afterwards for the following:
1) Is your transform really used? (wrong syntax or typo on command line maybe, log will tell you whether it applied the transform or not)
2) Might be that some Custom Action will kick in after the registry entry is set and changes it. (search the CA table for suspicious CA's and again, the log tell you in what order it happened)
3) If it isn't 1 or 2, maybe a system search for some value, or an old version of the app that's causing it, whatever...? Can't tell with the current information.
So if this isn't helping at all, give us some more details. Like, which application/regfile, the commandline you used, is there a previous version involved (uninstall or upgrade)...
Good luck :)
1) Is your transform really used? (wrong syntax or typo on command line maybe, log will tell you whether it applied the transform or not)
2) Might be that some Custom Action will kick in after the registry entry is set and changes it. (search the CA table for suspicious CA's and again, the log tell you in what order it happened)
3) If it isn't 1 or 2, maybe a system search for some value, or an old version of the app that's causing it, whatever...? Can't tell with the current information.
So if this isn't helping at all, give us some more details. Like, which application/regfile, the commandline you used, is there a previous version involved (uninstall or upgrade)...
Good luck :)
Posted by:
tegai1
14 years ago
hi,
Thanks for the reply [:D]
1. Transform is working fine as it applies with the shortcut changes made.
2. Application is called Cabri2Plus (Educational Software)
3. Actual Reg change needed is: [HKEY_LOCAL_MACHINE\SOFTWARE\Cabri2p1.3] "Key"="TRUE"
4. ON install it installs as: [HKEY_LOCAL_MACHINE\SOFTWARE\Cabri2p1.3] "Key"=""
5. As you suggested the problem stinks of CA override. I'll have another look although I'm pretty new to this so knowing what I'm looking for is my main problem.
Thanks again
Thanks for the reply [:D]
1. Transform is working fine as it applies with the shortcut changes made.
2. Application is called Cabri2Plus (Educational Software)
3. Actual Reg change needed is: [HKEY_LOCAL_MACHINE\SOFTWARE\Cabri2p1.3] "Key"="TRUE"
4. ON install it installs as: [HKEY_LOCAL_MACHINE\SOFTWARE\Cabri2p1.3] "Key"=""
5. As you suggested the problem stinks of CA override. I'll have another look although I'm pretty new to this so knowing what I'm looking for is my main problem.
Thanks again
Posted by:
tegai1
14 years ago
under execute immediate I have a CA "WriteRegistryValues" but it's greyed out. Does this look likely to be my problem?
Bit of backgroud to the app:
The application requires activating post install, this has been captured and added to the transform. This now all works as expected providing I add the TRUE value to this reg entry, I just need my package to apply this change and it's job done!
Bit of backgroud to the app:
The application requires activating post install, this has been captured and added to the transform. This now all works as expected providing I add the TRUE value to this reg entry, I just need my package to apply this change and it's job done!
Posted by:
Rheuvel
14 years ago
Posted by:
tegai1
14 years ago
hi,
Thanks for all your help with this. I’ve fixed the problem but not via CA. Basically I removed a property in the AppSearch table and reglocator table and then changed the value of the key in the registry table.
I guess changing the value in the regitry table was not sufficient as the property in the other two tables were superseding them?
I'm happy it works now, but if anyone would case to give a true explanation as to what was going on, I would be greatly appreciative.
Cheers again for all your help
Thanks for all your help with this. I’ve fixed the problem but not via CA. Basically I removed a property in the AppSearch table and reglocator table and then changed the value of the key in the registry table.
I guess changing the value in the regitry table was not sufficient as the property in the other two tables were superseding them?
I'm happy it works now, but if anyone would case to give a true explanation as to what was going on, I would be greatly appreciative.
Cheers again for all your help
Posted by:
nheim
14 years ago
Hi Gwyn,
most likely, the component, which installs the registry key, has a condition on it, which will be set through appsearch/reglocator.
Look at the last column of the registry table line in question and search it in the component table. Then have a look at the condition column of this line.
Regards, Nick
most likely, the component, which installs the registry key, has a condition on it, which will be set through appsearch/reglocator.
Look at the last column of the registry table line in question and search it in the component table. Then have a look at the condition column of this line.
Regards, Nick
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.