Solved

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

Posted on 2013-02-01
13
292 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Monitor input from a computer is usually nothing special.  In this instance it prevented anyone from using the computer.  This was a preconfiguration that didn't work.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

895 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

15 Experts available now in Live!

Get 1:1 Help Now