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.
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?
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?
FOLLOW US
Get the latest news in Application Packaging