Defaults from a previous installation - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

jmace
Posts: 55
Joined: Thu Jul 01, 2010 4:46 pm

Defaults from a previous installation

We are rolling out an upgrade to our application. One of our dialogs asks the user for a server address, username, and password so as to login to SQL Server. They only need to do this once on the initial install of the application, say, 3.0. The server address is stored in the registry. I have a couple questions:

1.) How can I detect whether or not this application was previously installed?
2.) How can I conditionally bypass the dialogue that would originally collect the server address, you username and password if the server address registry value already exists?
3.) How can I not remove a particular folder on an uninstall in skip adding it on the install if it already exists?

Thank you in advance,
Jim
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Defaults from a previous installation

Hi Jim,
How can I detect whether or not this application was previously installed?
You can detect older versions by using OLDPRODUCTS property.
How can I conditionally bypass the dialogue that would originally collect the server address, you username and password if the server address registry value already exists?
To determine if your registry value exists you can use a registry search. The search property can then be used to condition your dialog.
How can I not remove a particular folder on an uninstall in skip adding it on the install if it already exists?
This is not supported by Windows Installer. But you can create a backup for it before the upgrade and restore it after.

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

Return to “Common Problems”