File Searches and Feature Action - 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!

brianhudson
Posts: 7
Joined: Tue Jul 28, 2009 9:59 pm

File Searches and Feature Action

We are migrating to Windows Installer so all of our customers currently have our application installed with Inno Setup.

To help them install, we use the 'File Search' to identify what is already installed. We then use VBScript to set the FeatureRequestState (shown below). If the user is not running using the UI sequence (SILENT_INSTALL = "Y") then we call the VBScript in the "InstallExecuteSequence.InstallInitialize" event.

If Session.Property("HAVE_ADMIN_CLIENT") <> "" Then
Session.FeatureRequestState("Admin") = msiInstallStateLocal
Else
Session.FeatureRequestState("Admin") = msiInstallStateAbsent
End If

This works fine when the installer is run using msiexec and the /qb option but it is not working when the it is installed using (Active Directory) GPO. We are told the customer pushes the MSI installer and forces a reboot at which time the installer is run by Windows.

We can run the installer from a folder anywhre so it is not related to the location of the installer.

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

Re: File Searches and Feature Action

Hi,

I'm not sure why you are encountering this behavior. Can you run other scripts on the target machine? If so, can you please send a small test case which shows this problem to support at advancedinstaller dot com so we can investigate it?

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

Return to “Common Problems”