JLavalley
Posts: 36
Joined: Tue Mar 03, 2009 7:28 pm

Newbie: registry question

Wed Mar 04, 2009 8:08 pm

Hi, I'm fairly new to Advanced Installer..

I have a dialog box that prompts for a value. I record that value in a registry key. However, after the installation is over, the registry key has the default value of the property *not* the value entered during the install.

What am I doing wrong?

- Jerome
- Jerome

Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact:  Website

Re: Newbie: registry question

Thu Mar 05, 2009 1:15 pm

Hi Jerome,

I'm not sure why you are encountering this behavior. Can you please send us the AIP (project) file with the problem to support at advancedinstaller dot com so we can investigate it?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

JLavalley
Posts: 36
Joined: Tue Mar 03, 2009 7:28 pm

Re: Newbie: registry question

Thu Mar 05, 2009 3:30 pm

Before I got your reply, I got it working. Not sure if or why it matters, but I changed the names of two properties in question to all UPPERCASE. That resolved the issue.

I do have another question:

My installation does the following
1. Copies our app code to the appropriate directory include the setup.exe of a required app.
2. Launches the setup.exe using a custom action
3. Creates a registry key used by the dependent app.
4. Creates a printer using all of the above.

This works great but the uninstall isn't working. It must:
1. Delete the printer - this works
2. Delete the registry key - THIS FAILS
3. Launch the "uninstall.exe" using a custom action - this launches but fails b/c of #2.
4. Remove our app code etc - this fails b/c #3 fails.

To get the registry key deleted prior to running the "uninstall.exe" I added a custom action (EXE with Working Dir..):
[SystemFolder]\cmd.exe /c reg.exe /DELETE "MY KEY" - this fails but doesn't tell me why.

I also tried
[SystemFolder]\reg.exe /DELETE "MY KEY" - again, this fails.

How can I ensure that the registry key is deleted prior to my custom action running?

Thanks!
- Jerome

JLavalley
Posts: 36
Joined: Tue Mar 03, 2009 7:28 pm

Re: Newbie: registry question

Thu Mar 05, 2009 4:14 pm

never mind! typo in the custom action command.
- Jerome

Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact:  Website

Re: Newbie: registry question

Fri Mar 06, 2009 8:23 am

Hi,
Not sure if or why it matters, but I changed the names of two properties in question to all UPPERCASE. That resolved the issue.
Please note that private properties can be accessed only during the UI (they are not available when the registry is created).

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”