[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

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

Posted on 2013-02-01
13
Medium Priority
?
300 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
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.

 
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

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.

Question has a verified solution.

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

One of the frequent problems with the installations is when some file or registry entry is not removed from the system upon un-installation of the product. Clean removal is always highly desirable. One major reason for that is badly authored inst…
If you don't know how to downgrade, my instructions below should be helpful.
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

649 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