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
- :
- Custom dialogs for Installscript MSI Project need help
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 30, 2009
06:16 PM
Custom dialogs for Installscript MSI Project need help
I'm trying to use a custom dialog that I made, with an InstallScript MSI Project, but am having trouble getting it into the installscript (setup.rul). I keep getting compile errors. The name of the custom dialog I want to display is called SdMinSysReq. I have included an attachment of the error.
Thanks in advance
Thanks in advance
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 30, 2009
06:21 PM
Part of the problem is you're missing a colon (:) after Dlg_SdMinSysReq, but I'm uncertain why SdMinSysReq isn't (or should be) defined - that probably is or should be somewhere else in your code, but may be due to the missing colon.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 30, 2009
06:22 PM
If Dlg_SdMinSysReq is a label (the target of a goto), you'll want to add a colon after it.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 30, 2009
07:02 PM
I added a colon after Dlg_SdMinSysReq but I still get two compile errors. And where in my script should I define my custom dialog?
EDIT: I got my dialog to work by editing a predefined dialog. But now I'm having other problems 😞 (figures). I'm having trouble understanding the functions of SdSelectFolder. Also, how do I enable SdSelectFolder to create shortcuts in the startmenu programs folder?
Here is an example from the documentation:
/*--------------------------------------------------------------*\
*
* InstallShield Example Script
*
* Demonstrates the SdSelectFolder function.
*
* SdSelectFolder is called to prompt the user to select a
* folder.
*
* Note: Before running this script, verify that the constant
* DEF_FOLDER references an existing folder on the
* target computer.
*
\*--------------------------------------------------------------*/
#define DEF_FOLDER "Startup"
#include "Ifx.h"
function OnBegin()
STRING szTitle, szMsg, svDefGroup;
begin
// Set up parameters for call to SdSelectFolder.
szTitle = "SdSelectFolder Example";
szMsg = "";
svDefGroup = DEF_FOLDER;
// Get user's folder selection.
SdSelectFolder (szTitle, szMsg, svDefGroup);
end;
EDIT: I got my dialog to work by editing a predefined dialog. But now I'm having other problems 😞 (figures). I'm having trouble understanding the functions of SdSelectFolder. Also, how do I enable SdSelectFolder to create shortcuts in the startmenu programs folder?
Here is an example from the documentation:
/*--------------------------------------------------------------*\
*
* InstallShield Example Script
*
* Demonstrates the SdSelectFolder function.
*
* SdSelectFolder is called to prompt the user to select a
* folder.
*
* Note: Before running this script, verify that the constant
* DEF_FOLDER references an existing folder on the
* target computer.
*
\*--------------------------------------------------------------*/
#define DEF_FOLDER "Startup"
#include "Ifx.h"
function OnBegin()
STRING szTitle, szMsg, svDefGroup;
begin
// Set up parameters for call to SdSelectFolder.
szTitle = "SdSelectFolder Example";
szMsg = "";
svDefGroup = DEF_FOLDER;
// Get user's folder selection.
SdSelectFolder (szTitle, szMsg, svDefGroup);
end;
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 01, 2009
02:25 AM
Call the function name which you have defined in the custom dialog definition section.. Do not call the dialog name directly in the label. or can you show the code of the definition of your custom dialog.