/build/static/layout/Breadcrumb_cap_w.png

Custom Action for setting a Registry Value?

We have an application that fires off a repair on login so the current users reg values are set.

I need to set up the install so it changes a value dependent on the existence of a directory.

I'm OK with setting a property using a system search within wise, but I was wandering what would be the best way to set the value to the relevant key, (Im guessing a cutom action, maybe VB script?)

Thanks in advance

0 Comments   [ + ] Show comments

Answers (5)

Posted by: spottedcoin 16 years ago
Senior Yellow Belt
0
I would do it via a system search. I generally go by the rule of thumb that the less custom actions the better the msi.
Posted by: JFSeubers 16 years ago
Yellow Belt
0
Use a REG ADD commandline.
Typre REG ADD /? in your commandbox to get the commandline for this standard windows command.

You can use the property in a condition for execution.

Simple and functional.
Posted by: nheim 16 years ago
10th Degree Black Belt
0
Hi Jimmy,
use the registry table for this also, but set the root column to 1.
In Wise, you just have to put on the right place below the 'HKEY_CURRENT_USER' hive.
Regards, Nick
Posted by: jimmyx 16 years ago
Purple Belt
0
Thanks for that info guys

I have got it to work on a fresh install

The problem now is that on repair the key is being overwritten by a default value, I'm thinking that the systemsearch is not running on a repair so the property is never being set.

Is this normally the case? and if so can I change it so systemsearch is always run on a repair?
Posted by: nheim 16 years ago
10th Degree Black Belt
0
Hi Jimmy,
please turn on logging and look at logfile in the users temp folder.
Search for the appsearch action and take a closer look there.
Regards, Nick
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