SteveA
Posts: 22
Joined: Fri Jan 30, 2009 2:36 am

Launching a browser

Is there anything in Advanced Installer that makes it easy to launch a browser when someone uninstalls the software so a comment form can be presented to the user to find out why the software is being removed?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Launching a browser

Hi,

You can try using a Launch file or open URL custom action. This way you can open an URL in the default Internet browser.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
SteveA
Posts: 22
Joined: Fri Jan 30, 2009 2:36 am

Re: Launching a browser

Thanks. That calls a URL ok, but to make it useful the action needs to include a variable in the call that identifies the machine that's calling the URL. Is there someplace the installed package code can place a variable after it installs, so that the uninstall code can grab it?
SteveA
Posts: 22
Joined: Fri Jan 30, 2009 2:36 am

Re: Launching a browser

For example, can the custom action read a value from the Registry of the machine it's running in?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Launching a browser

Hi,
but to make it useful the action needs to include a variable in the call that identifies the machine that's calling the URL.
You can try using the ComputerName property as the variable.
Is there someplace the installed package code can place a variable after it installs, so that the uninstall code can grab it?
You can write the information you need in the registry or in a file.
can the custom action read a value from the Registry of the machine it's running in?
The "Launch file or open URL" custom action cannot read a registry entry. However, you can use another custom action for this. You can find some sample VBScript code here. The custom action which retrieves the entry can set an installer property which can be used for the URL.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
SteveA
Posts: 22
Joined: Fri Jan 30, 2009 2:36 am

Re: Launching a browser

I just wanted to provide some feedback on how I solved my problem. I wasn't able to use the Launch URL action because I need to pass a variable that identifies the machine and there's no way to pick up a variable from Launch URL action.

I finally wrote my own .exe that gets the variable needed and calls the local browser with the variable as a QueryString. I specified this exe as a custom action of the Uninstall phase.

Steve
hassanali20
Posts: 3
Joined: Wed May 18, 2011 2:23 pm

Re: Launching a browser

hi steve,

can you tell me how do i get a value from a exe file to the installer?

I want to actually execute the command.exe with some command line stuff push the output to the installer property.

thanks in advance.

regards
hassan
Bogdan
Posts: 2794
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Launching a browser

Hi Hassan,

I'm afraid Windows Installer does not allow you to set a property from and EXE. You can do this from a Win32 DLL or VBScript custom action,
but not EXE.

From what I can understand from Steve's post he passed the value of a property to its EXE,probably passing it as a command line parameter, not the other way around.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”