?
Solved

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

Posted on 2013-02-01
13
Medium Priority
?
297 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 5
13 Comments
 

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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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
 

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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.
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

770 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