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
- :
- Re: improper uninstall message
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
‎Mar 06, 2008
10:22 AM
improper uninstall message
It could be simple but somehow I do not know how to do this:
"XXX is configuring your new software installation." This message appears in both install and uninstall processes. Can I change it? Which function to call to set that string? Thanks.
"XXX is configuring your new software installation." This message appears in both install and uninstall processes. Can I change it? Which function to call to set that string? Thanks.
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 07, 2008
09:27 AM
Aah, so, it's actually not my own inability of not being able to change the text. It took 3 years for some people to find a hack on this issue. 😄 Locate an old link in the archive for reference: http://community.macrovision.com/showthread.php?t=124697. Lucky me.
Will try that but not sure if the same ID would still be valid on InstallShield 2008 settings. I wish there is a proper way to just modify this simple text.
Will try that but not sure if the same ID would still be valid on InstallShield 2008 settings. I wish there is a proper way to just modify this simple text.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 07, 2008
01:00 PM
You actually need to use User32.SetDlgItemText() in IS 2008.
http://community.macrovision.com/showthread.php?t=148301
http://community.macrovision.com/showthread.php?t=148301
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 19, 2008
10:32 AM
They finally added a function to do this in InstallShield 11...
SetStatusExStaticText(szString);
szString
The text to be set as the static text. The following standard strings are available using the SdLoadString function:
IDS_IFX_STATUSEX_STATICTEXT_FIRSTUI—The InstallShield Wizard is installing %P.
IDS_IFX_STATUSEX_STATICTEXT_MAINTUI_MODIFY—The InstallShield Wizard is modifying %P.
IDS_IFX_STATUSEX_STATICTEXT_MAINTUI_REPAIR—The InstallShield Wizard is repairing %P.
IDS_IFX_STATUSEX_STATICTEXT_MAINTUI_REMOVEALL—The InstallShield Wizard is removing %P.
IDS_IFX_STATUSEX_STATICTEXT_UPDATEUI—The InstallShield Wizard is updated %VI of %P to version %VS.
e.g. in your OnMaintUIBefore() method, call it like this if the user has selected REMOVEALL:
SetStatusExStaticText(SdLoadString(IDS_IFX_STATUSEX_STATICTEXT_MAINTUI_REMOVEALL));
SetStatusExStaticText(szString);
szString
The text to be set as the static text. The following standard strings are available using the SdLoadString function:
IDS_IFX_STATUSEX_STATICTEXT_FIRSTUI—The InstallShield Wizard is installing %P.
IDS_IFX_STATUSEX_STATICTEXT_MAINTUI_MODIFY—The InstallShield Wizard is modifying %P.
IDS_IFX_STATUSEX_STATICTEXT_MAINTUI_REPAIR—The InstallShield Wizard is repairing %P.
IDS_IFX_STATUSEX_STATICTEXT_MAINTUI_REMOVEALL—The InstallShield Wizard is removing %P.
IDS_IFX_STATUSEX_STATICTEXT_UPDATEUI—The InstallShield Wizard is updated %VI of %P to version %VS.
e.g. in your OnMaintUIBefore() method, call it like this if the user has selected REMOVEALL:
SetStatusExStaticText(SdLoadString(IDS_IFX_STATUSEX_STATICTEXT_MAINTUI_REMOVEALL));
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 19, 2008
10:56 AM
I ran into a problem just this week where text was not updating correctly AFTER using the SetDlgItemText. So I created a function called RepaintControl. Below is the code. I hope this helps.
The call to the function would look like this:
InvalidateRect and UpdateWindow are User32 function calls.
prototype RepaintControl(HWND, NUMBER);
/**
* @brief Refreshes specified control
*
* @arg p_hDialog parent dialog handle
* @arg p_nControl ControlID to repaint
*/
function RepaintControl(p_hDialog, p_nControl)
HWND hControl;
begin
hControl = GetDlgItem(p_hDialog, p_nControl);
InvalidateRect(hControl, NULL, FALSE);
UpdateWindow(hControl);
end;
The call to the function would look like this:
hRegDlg = CmdGetHwndDlg (szRegDialog);
//Repaint control and refresh dialog
//NOTE: Substitute your own control ID. It can be a defined value as seen below or simply a number (e.g., 50, 710, etc)
RepaintControl(hRegDlg, TEXT_PN40);
InvalidateRect and UpdateWindow are User32 function calls.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 11, 2009
06:17 AM
DLee65 wrote:
I ran into a problem just this week where text was not updating correctly AFTER using the SetDlgItemText. So I created a function called RepaintControl. Below is the code. I hope this helps.
prototype RepaintControl(HWND, NUMBER);
/**
* @brief Refreshes specified control
*
* @arg p_hDialog parent dialog handle
* @arg p_nControl ControlID to repaint
*/
function RepaintControl(p_hDialog, p_nControl)
HWND hControl;
begin
hControl = GetDlgItem(p_hDialog, p_nControl);
InvalidateRect(hControl, NULL, FALSE);
UpdateWindow(hControl);
end;
The call to the function would look like this:
hRegDlg = CmdGetHwndDlg (szRegDialog);
//Repaint control and refresh dialog
//NOTE: Substitute your own control ID. It can be a defined value as seen below or simply a number (e.g., 50, 710, etc)
RepaintControl(hRegDlg, TEXT_PN40);
InvalidateRect and UpdateWindow are User32 function calls.
You answor helped me, 3Q。