Solved

Opening a webpage an InstallSheild install and opening a different page on uninstall

Posted on 2013-02-01
13
291 Views
Last Modified: 2013-02-14
Hi,

I am using InstallShield Pro 2012 and would like to display a webpage after a user installs my software, and also display a different webpage when a user uninstalls my software.

I have seen some explanations on how to launch a webpage at the completion of an install, but none of these explanations contemplates one page for an install and another for an uninstall.

How do I achieve this?
0
Comment
Question by:gazillabyte
  • 6
  • 5
13 Comments
 
LVL 6

Expert Comment

by:esolve
ID: 38846329
0
 

Author Comment

by:gazillabyte
ID: 38846546
I saw that URL but how does one set a different URL for install and uninstall?
0
 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 38846728
You can use condition _IsMaintenance = "Remove". Or, if you look in Istallshield at the dialog SetupCompleteSuccess , you will notice two textboxes, one saying "product was  installed", another "product was  uninstalled". They have conditions attached, so only one of them shows up. You can simply copy the condition of the latter one.

If the installation (including the removal) was in quiet mode, with no dialogs, then webpage probably shouldn't open up. The best practice is to attach custom action that launches the webpage to the button "Finish" in the final dialog.
0
 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 38846732
Here's a sample.
0
 

Author Comment

by:gazillabyte
ID: 38868908
I tried the sample you provided and it did nothing, i.e. there was no webpage displayed at all.
0
 

Accepted Solution

by:
gazillabyte earned 0 total points
ID: 38870289
OK, I got it to work and it's pretty simple (well as simple as anything can be in InstallShield).

Create 2 Custom Actions that call explorer, each with a different URL.

Here is the setup:
Webpage on InstallWebpage on Removal
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Author Comment

by:gazillabyte
ID: 38872951
I've requested that this question be closed as follows:

Accepted answer: 0 points for gazillabyte's comment #a38870289

for the following reason:

Because the other comments didn't answer my question.
0
 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 38872952
To make the sample work:

1. build it
2. run the msi to install
3. run it again to uninstall, so it runs with full interface

At the end of un-installation webpage will open up.

Or you can simply look inside how it's made.

The way you made it (1) opens the webpage in Internet Explorer rather than in user's default browser (2) opens the page even in quiet mode, which it should not (see my prev. comment).
0
 

Author Comment

by:gazillabyte
ID: 38873004
I did build it and I did test it and unfortunately it didn't work. No webpage was opened.
I think the idea of a sample is great... if it works.
I am using InstallShield Spring 2012 (the latest version).
0
 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 38873075
http://www.mediafire.com/download.php?0eb4xrj154s44hq has inside the source file, the msi built from it, and the video that shows how it works.
0
 

Author Comment

by:gazillabyte
ID: 38873563
Dude,

Here's the thing; I'm more than happy to give someone the credit they are due for helping me out.

That said, I can't get your sample to work and I can't open your video either (not sure what codec it is using, but I don't have the energy to find out).

From what I can see from your sample, you have created a custom action which runs some VB code to open a webpage.

My example calls Explorer (not Internet Explorer). Explorer will open the default viewer.

I don't have the energy to work out where you've hooked in your custom action and nor have you bother to explain how it work either.

For the next guy who wants an answer to this question, I have provided the simplest working solution. If they bother to download your example they are going to have to poke around and work out how it is meant to work.

Personally I don't care about the points, you are welcome to them, but I would not want someone to believe that you have provided the best solution available, or for that matter a solution at all because I can't see any evidence that you have answered the question.

The question was hot to open one page on install and another on uninstall. Presuming that your example works, is that what it does?
0
 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 38873643
It opens webpage on uninstall (only), provided that you run the un-installation with full interface, i.e. you see the screen SetupCompleteSuccess and press "Finish" on it, which is what launches the webpage. I.e custom action is hooked to the button "Finish" as event. In your solution the action runs from the execute sequence, so it will run even when the install is quiet  - widespread mistake, and accordingly the primary reason why I object to this solution being in E-E KB. The action itself is createobject("wscript.shell").run "http://(url)", which runs user's default browser. My default browser is Firefox, but if I run explorer http://www.google.com, the page opens up in IE.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

One of the major drawbacks of deploying applications by GPO is the complete lack of any centralized reporting. After a normal deployment, there are two ways to find out if it was successful – by looking in the event log, and by looking in the log of…
One of the most frequently asked questions on EE in the "Windows Installer" zone is how to eliminate self-triggered installation of some product.  The problem occurs when, suddenly, whenever a certain application is launched, or even when a folder i…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now