Read Registray value during uninstall - Advanced Installer Community
Parimal Patel
Posts: 25
Joined: Wed Jun 01, 2016 3:16 am

Read Registray value during uninstall

Hi

We have 3 different SQL Instance installed on server. Using Advanced installer i am deploying application and creating database belongs to one of the SQL Instance. I have SQL scripts which are executed during uninstall process.
During uninstall process my SQL scripts are executed to default SQL instance (which could be local or localhost) rather than perticular SQL instance which had selected during installation.
How can i achieve it?

If i put SQL Instance information into Registry than how can i read registry during uninstall process?
if i put SQL Instance information into Parameter than can i use this parameter during uninstall process? or this Parameter value lost after finishing installation, means value is not available on Uninstall process.

Thanks,
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Read Registray value during uninstall

Hi Parimal,

In order to read a registry value during the uninstall process you can go in the "Search" page and use the registry search functionality.

A simpler way to achieve this is to create a property in the "Install Parameters" page, select the "Set persistent property" option, then store the SQL Instance information into that property. That property will be automatically saved in the registry during the installation and it will be retrieved during the uninstallation.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”