This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Install after Uninstall
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 03, 2010
11:32 AM
Install after Uninstall
Hi there,
I'm sorry if these are naive questions - but I haven't had much luck finding a solution on these forums / documentation.
I would like the Maintenance behavior to show only Remove / Repair dialogue (with default Remove), and do a fresh installation following a 'Remove'.
I have adjusted the UI (SdWelcomeMaint) to show only Remove/Repair. I wrote my own Maint functions that read as below. I'm trying to call OnFirstUIBefore to do the installation. However, after uninstalling the application, it simply dies after running through the OnFirstUIBefore call i.e. it doesn't copy any files.
I would greatly appreciate it if anyone can help me with the following questions:
1) What do I do to make sure the installation continues after the call to OnFirstUIbefore()? On a related note, is there a better approach to force an installation?
2) How do I change the default radio-button selection To Remove (right now, nothing is selected)? I'm sure there is any easy way to do this, but I couldn't find anything intuitive. I tried calling SdWelcomeMaint with the REMOVEALL option but that doesn't seem to work.
p.s. I had posted this earlier in another thread I felt was relevant. Apologies for posting this here again, but that thread now seems to be moving in another direction.
I'm sorry if these are naive questions - but I haven't had much luck finding a solution on these forums / documentation.
I would like the Maintenance behavior to show only Remove / Repair dialogue (with default Remove), and do a fresh installation following a 'Remove'.
I have adjusted the UI (SdWelcomeMaint) to show only Remove/Repair. I wrote my own Maint functions that read as below. I'm trying to call OnFirstUIBefore to do the installation. However, after uninstalling the application, it simply dies after running through the OnFirstUIBefore call i.e. it doesn't copy any files.
function OnMaintUIBefore()
number ret;
begin
ret = SdWelcomeMaint ("", "",REMOVEALL);
Disable(BACKBUTTON);
switch(ret)
case 302: //repair
FeatureReinstall();
case 303: //remove all
FeatureRemoveAll();
endswitch;
end;
function OnMaintUIAfter()
string szOutput;
number ret;
begin
OnFirstUIBefore();
end;
I would greatly appreciate it if anyone can help me with the following questions:
1) What do I do to make sure the installation continues after the call to OnFirstUIbefore()? On a related note, is there a better approach to force an installation?
2) How do I change the default radio-button selection To Remove (right now, nothing is selected)? I'm sure there is any easy way to do this, but I couldn't find anything intuitive. I tried calling SdWelcomeMaint with the REMOVEALL option but that doesn't seem to work.
p.s. I had posted this earlier in another thread I felt was relevant. Apologies for posting this here again, but that thread now seems to be moving in another direction.
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 04, 2010
02:53 PM
Out of curiosity, how would the product ever be completely removed in this situation?
Do you foresee the original media being available for the new install after uninstall? I don't think the data files are automatically cached in for an InstallScript project.
Do you foresee the original media being available for the new install after uninstall? I don't think the data files are automatically cached in
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 09, 2010
10:23 AM
Hi Robert,
Thanks for the reply. I see your point - I just wanted to indicate the direction of the attempt I was making - it probably wouldn't work right for a "Remove Only" situation.
So, what would be the best way to go about this? It would be of great help if you can point me in the right direction.
Sandeep.
Thanks for the reply. I see your point - I just wanted to indicate the direction of the attempt I was making - it probably wouldn't work right for a "Remove Only" situation.
So, what would be the best way to go about this? It would be of great help if you can point me in the right direction.
Sandeep.
![](/skins/images/A5EADE085F77DE82FB3B14D6B307AE6A/responsive_peak/images/icon_anonymous_message.png)