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
- :
- a puzzle with SdFeatureTree
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
‎Jun 30, 2009
04:07 AM
a puzzle with SdFeatureTree
hello ,every body .
i build a script project by IS2009.
i modify the event that OnShowUI().
i want force install but no uniinstall the older version.
the project install successful ,but reinstall can not work right,the SdFeatureTree can't show the required drive space .and can't install ok.
somebody can help me .i English is poor ,sorry.
the there is the codes.
function OnShowUI()
BOOL bMaintenanceMode, bUpdateMode;
string szIgnore, szTitle;
begin
// Enable dialog caching
Enable( DIALOGCACHE );
// Determine what events to show.
bUpdateMode = FALSE;
bMaintenanceMode = FALSE;
// Remove this to disabled update mode.
if( UPDATEMODE ) then
bUpdateMode = TRUE;
endif;
// Remove this to disable maintenance mode.
if ( MAINTENANCE ) then
bMaintenanceMode = TRUE;
endif;
// Show appropriate UI
// TODO: Enable if you want to enable background etc.
//if ( LoadStringFromStringTable( "TITLE_MAIN", szTitle ) < ISERR_SUCCESS ) then // Load the title string.
// szTitle = IFX_SETUP_TITLE;
//endif;
//SetTitle( szTitle, 24, WHITE );
//Enable( FULLWINDOWMODE );
//Enable( BACKGROUND );
//SetColor( BACKGROUND, RGB( 0, 128, 128 ) );
/* if( bUpdateMode ) then
OnUpdateUIBefore();
else
if ( bMaintenanceMode ) then
OnMaintUIBefore();
else
OnFirstUIBefore();
endif;
endif;
*/
OnFirstUIBefore();
// Move Data
OnMoveData();
/*if( bUpdateMode ) then
OnUpdateUIAfter();
else
if ( bMaintenanceMode ) then
OnMaintUIAfter();
else
OnFirstUIAfter();
endif;
endif;
*/
OnFirstUIAfter();
// Disable dialog caching
Disable(DIALOGCACHE);
end;
i build a script project by IS2009.
i modify the event that OnShowUI().
i want force install but no uniinstall the older version.
the project install successful ,but reinstall can not work right,the SdFeatureTree can't show the required drive space .and can't install ok.
somebody can help me .i English is poor ,sorry.
the there is the codes.
function OnShowUI()
BOOL bMaintenanceMode, bUpdateMode;
string szIgnore, szTitle;
begin
// Enable dialog caching
Enable( DIALOGCACHE );
// Determine what events to show.
bUpdateMode = FALSE;
bMaintenanceMode = FALSE;
// Remove this to disabled update mode.
if( UPDATEMODE ) then
bUpdateMode = TRUE;
endif;
// Remove this to disable maintenance mode.
if ( MAINTENANCE ) then
bMaintenanceMode = TRUE;
endif;
// Show appropriate UI
// TODO: Enable if you want to enable background etc.
//if ( LoadStringFromStringTable( "TITLE_MAIN", szTitle ) < ISERR_SUCCESS ) then // Load the title string.
// szTitle = IFX_SETUP_TITLE;
//endif;
//SetTitle( szTitle, 24, WHITE );
//Enable( FULLWINDOWMODE );
//Enable( BACKGROUND );
//SetColor( BACKGROUND, RGB( 0, 128, 128 ) );
/* if( bUpdateMode ) then
OnUpdateUIBefore();
else
if ( bMaintenanceMode ) then
OnMaintUIBefore();
else
OnFirstUIBefore();
endif;
endif;
*/
OnFirstUIBefore();
// Move Data
OnMoveData();
/*if( bUpdateMode ) then
OnUpdateUIAfter();
else
if ( bMaintenanceMode ) then
OnMaintUIAfter();
else
OnFirstUIAfter();
endif;
endif;
*/
OnFirstUIAfter();
// Disable dialog caching
Disable(DIALOGCACHE);
end;
(9) Replies
‎Jun 30, 2009
09:31 PM
Does this behavior occur if you remove the modified version of OnShowUI?
Note that OnFirstUIBefore is only intended to be called on a first time install. Calling it in maintenance mode may not behave as expected.
Note that OnFirstUIBefore is only intended to be called on a first time install. Calling it in maintenance mode may not behave as expected.
‎Jul 01, 2009
02:03 AM
joshstechnij wrote:
Does this behavior occur if you remove the modified version of OnShowUI?
Note that OnFirstUIBefore is only intended to be called on a first time install. Calling it in maintenance mode may not behave as expected.
thanks .
it does not occur when i remove the modified.
the original codes of OnShowUI() function that the event-wizard created ,it runs right .
i want force install the project built by IS2009 to another directory , when the project determine an older version of the project .and i don't want uninstall the older version project .
how can i do .
.
‎Jul 01, 2009
04:39 PM
You may want to try using the multi-instance support that is provided with InstallScript projects. This would provide the option to install a new instance of the product (thereby allowing the product to be installed in different locations on one machine) or run an existing instance in maintenance mode.
Multi-instance support can be enabled from the Project->Settings | Maintenance tab in InstallScript projects.
Multi-instance support can be enabled from the Project->Settings | Maintenance tab in InstallScript projects.
‎Jul 01, 2009
08:06 PM
thanks for you help.
i config the property of project and test it.
i have any questions :
1: the every version could run depended ???
2: the shortcuts of those projects which on the program group of star menu can have multiple ? and they are one-to-onetransformation??
i config the property of project and test it.
i have any questions :
1: the every version could run depended ???
2: the shortcuts of those projects which on the program group of star menu can have multiple ? and they are one-to-onetransformation??
‎Jul 02, 2009
11:47 AM
Each instance (from the InstallScript engine's view) are independent of each other. However, with any multi-instance style setup, the installation needs to be authored carefully to ensure one instance does not interfere with the others (for example, if the installation contains COM objects that must be registered, a COM object can only be registered once on any machine, which then creates an issue with multiple instance setups). You may want to create a separate shortcut folder (assuming shortcuts are on the start menu) for each instance.
There aren't really any options to force new instances to be installed, the option is given to the user running the installation. You may try using the /ig command line parameter when launching setup.exe to specify the instance you would like to use (this parameter requires specifying a valid guid for the instance).
There aren't really any options to force new instances to be installed, the option is given to the user running the installation. You may try using the /ig command line parameter when launching setup.exe to specify the instance you would like to use (this parameter requires specifying a valid guid for the instance).
‎Jul 06, 2009
10:51 AM
There aren't any options available to install multiple instances of a product without enabling multiple instance support. You could set the project to "no maintenance or uninstall" but then it will be impossible to uninstall the product.