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
- :
- Reinstall instead of modify/repair option
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
‎Apr 02, 2008
02:57 AM
Reinstall instead of modify/repair option
When the user runs setup.exe again on a system that has the s/w installed I wish that the setup install the software again.. Is there any way to achieve this?
Thank u in advance,
Davide
Thank u in advance,
Davide
(6) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 02, 2008
01:06 PM
You might want to try overriding the OnShowUI event in the InstallScript. Typically the code will appear something like this:
function OnShowUI()
BOOL bMaintenanceMode;
string szIgnore;
STRING szTitle;
begin
// Enable dialog caching
Enable( DIALOGCACHE );
// Determine what events to show.
bMaintenanceMode = FALSE;
bMoveData = TRUE;
// Remove this to disable maintenance mode.
if ( MAINTENANCE ) then
bMaintenanceMode = TRUE;
endif;
// Show appropriate UI
if ( bMaintenanceMode ) then
OnMaintUIBefore();
else
OnFirstUIBefore();
endif;
if (FALSE != bMoveData) then
// Move Data
OnMoveData();
endif;
// Show appropriate UI after move data
if ( bMaintenanceMode ) then
OnMaintUIAfter();
else
OnFirstUIAfter();
endif;
// Disable dialog caching
Disable(DIALOGCACHE);
end;
You should simply have to remove any references to maintenance mode:
function OnShowUI()
string szIgnore;
STRING szTitle;
begin
// Enable dialog caching
Enable( DIALOGCACHE );
// Determine what events to show.
bMoveData = TRUE;
// Show appropriate UI
OnFirstUIBefore();
if (FALSE != bMoveData) then
// Move Data
OnMoveData();
endif;
OnFirstUIAfter();
// Disable dialog caching
Disable(DIALOGCACHE);
end;
Hope this helps!
function OnShowUI()
BOOL bMaintenanceMode;
string szIgnore;
STRING szTitle;
begin
// Enable dialog caching
Enable( DIALOGCACHE );
// Determine what events to show.
bMaintenanceMode = FALSE;
bMoveData = TRUE;
// Remove this to disable maintenance mode.
if ( MAINTENANCE ) then
bMaintenanceMode = TRUE;
endif;
// Show appropriate UI
if ( bMaintenanceMode ) then
OnMaintUIBefore();
else
OnFirstUIBefore();
endif;
if (FALSE != bMoveData) then
// Move Data
OnMoveData();
endif;
// Show appropriate UI after move data
if ( bMaintenanceMode ) then
OnMaintUIAfter();
else
OnFirstUIAfter();
endif;
// Disable dialog caching
Disable(DIALOGCACHE);
end;
You should simply have to remove any references to maintenance mode:
function OnShowUI()
string szIgnore;
STRING szTitle;
begin
// Enable dialog caching
Enable( DIALOGCACHE );
// Determine what events to show.
bMoveData = TRUE;
// Show appropriate UI
OnFirstUIBefore();
if (FALSE != bMoveData) then
// Move Data
OnMoveData();
endif;
OnFirstUIAfter();
// Disable dialog caching
Disable(DIALOGCACHE);
end;
Hope this helps!
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 09, 2008
09:18 AM
it doesnt work and it says 'OnShowUI': function has no prototype declaration. and then OnMoveData: undefined identifier
Maybe because Im using InstallScript MSI project???
What else could I do?
Please help me :D...I m so in a hurry.
davide
Maybe because Im using InstallScript MSI project???
What else could I do?
Please help me :D...I m so in a hurry.
davide
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 09, 2008
10:24 AM
OnShowUI might only be available in a pure InstallScript project. One other thing that you can try is to override OnMaintUiBefore to call OnFirstUiBefore, so you end up with the same functionality. You would then have to make sure that OnMaintUiAfter calls OnFirstUiAfter as well.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 09, 2008
10:26 AM
What project type are you using? What you are describing is a Multiple Instance installation servicing pattern and both InstallScript and MSI projects support it, but in different ways.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 09, 2008
01:47 PM
Christopher Painter wrote:
What project type are you using? What you are describing is a Multiple Instance installation servicing pattern and both InstallScript and MSI projects support it, but in different ways.
how this can be acheive in Basic MSI project type?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 09, 2008
01:49 PM
These two articles contain ideas and links to additional resources. Let me know if you have any questions:
http://blog.deploymentengineering.com/2006/10/multiple-instance-msis-and.html
http://blog.deploymentengineering.com/2008/03/installshield-2009-beta-part-i.html
http://blog.deploymentengineering.com/2006/10/multiple-instance-msis-and.html
http://blog.deploymentengineering.com/2008/03/installshield-2009-beta-part-i.html
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)