Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 302
  • Last Modified:

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

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
gazillabyte
Asked:
gazillabyte
  • 6
  • 5
1 Solution
 
gazillabyteAuthor Commented:
I saw that URL but how does one set a different URL for install and uninstall?
0
 
Vadim RappCommented:
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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
Vadim RappCommented:
Here's a sample.
0
 
gazillabyteAuthor Commented:
I tried the sample you provided and it did nothing, i.e. there was no webpage displayed at all.
0
 
gazillabyteAuthor Commented:
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
 
gazillabyteAuthor Commented:
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
 
Vadim RappCommented:
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
 
gazillabyteAuthor Commented:
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
 
Vadim RappCommented:
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
 
gazillabyteAuthor Commented:
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
 
Vadim RappCommented:
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 6
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now