Condition to determine if software is not installed - 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!

jfuhr
Posts: 41
Joined: Wed Mar 19, 2008 4:52 pm

Condition to determine if software is not installed

I have a SQL connection dialog that I only want to show if the software is not installed (uninstalled or new install).

On the Welcome Dialog, I added a Published Event to the Next button like this:

New Dialog - SQLConnectionDlg - AI_INSTALL AND (Not Installed)
New Dialog - VerifyReadyDlg - AI_INSTALL

So if the software is not installed, it should go to the SQL Connection screen. If it is installed, we skip to Verify Ready.

However, on a new install, it's going to the Verify Ready screen.

What would be the proper condition to use? Is there a list of conditions? I can't seem to find any in the help manual.

Thanks!
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Condition to determine if software is not installed

Hello,

Please note that if the same version of your product is already installed on the target machine, when running the same install package, it will enter the maintenance mode. This is the Windows Installer default behavior.
The maintenance mode dialog chain can be customized from the Maintenance tree in the Dialogs page, not from the First Time Install tree.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jfuhr
Posts: 41
Joined: Wed Mar 19, 2008 4:52 pm

Re: Condition to determine if software is not installed

The versions are different. I change the Product Code for each version update.

If version 1.0 is installed and then the user runs the installer for version 1.1., I want to be able to detect if version 1.0 is installed and skip a dialog.

This is because I am using the Backup/Restore script and don't want the user to have to re-enter certain information. When the new version is installed, the configuration file from 1.0 is the restored.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Condition to determine if software is not installed

Hello,

Here is an article on how to determine if an upgrade is being performed. The OLDPRODUCTS property is relevant in your case and you can add it to the new dialog event condition.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Lupitabondou
Posts: 1
Joined: Wed May 25, 2011 10:46 am

REGARDING

Nice! It's so onerous to seek good quality data on the web at this time from educated sources, it is all wannabe's and reused content material with just a few exceptions. I hope you keep up the nice work and I seemingly be back to learn extra of your posts sooner or later!
jfuhr
Posts: 41
Joined: Wed Mar 19, 2008 4:52 pm

Re: Condition to determine if software is not installed

mihai.petcu wrote:Hello,

Here is an article on how to determine if an upgrade is being performed. The OLDPRODUCTS property is relevant in your case and you can add it to the new dialog event condition.

All the best,
Mihai
Exactly what I was looking for. Thank you! :D

Return to “Common Problems”