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: SdLogonUserInformation method call example please?
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
Jan 18, 2011
06:00 PM
SdLogonUserInformation method call example please?
InstallScript project.
Any snippet would be greatly appreciated.
I'm calling the method like this
SdLogonUserInformation(szTitle, szMsg, szAssociatedAccountName, szAssociatePassword);
It compiles OK.
But when i build the project, I'm getting this error:
Build Error 136; Could not copy file . blah... blah... blah...
I've seen this error several time before, opened the knowledge base and found, that it has nothing to do with the actual problem. It's so frustrating....
When I comment the line with the method call, it builds OK.
How to open that dialog?
Any ideas please?
Any snippet would be greatly appreciated.
I'm calling the method like this
SdLogonUserInformation(szTitle, szMsg, szAssociatedAccountName, szAssociatePassword);
It compiles OK.
But when i build the project, I'm getting this error:
Build Error 136; Could not copy file . blah... blah... blah...
I've seen this error several time before, opened the knowledge base and found, that it has nothing to do with the actual problem. It's so frustrating....
When I comment the line with the method call, it builds OK.
How to open that dialog?
Any ideas please?
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jan 25, 2011
06:01 PM
Look at the "Adding the Ability to Create or Set an Existing User Account" in the help library.
Task
To add support for the LogonInformation dialogs in either an InstallScript or InstallScript MSI project:
1. Navigate to the location in your InstallScript code where you want to insert the LogonInformation dialog set. In most situations, you will add it within OnFirstUIBefore. For example:
Dlg_SdLogon:
SdLogonUserInformation(szTitle, szMsg, szAccount, szPassword);
if (nResult = BACK) goto Dlg_SdWelcome;
2. In InstallScript MSI projects, add the following function so that the Windows Installer properties are set to the same value as the InstallScript global variables. You can add it after calling SdLogonUserInformation.
OnLogonUserSetMsiProperties();
3. On the Build menu, click Settings. The Settings dialog box opens.
4. Click the Compile/Link tab.
5. In the Libraries (.obl) box, enter the name of your new library file (*.obl):
NetApiRT.obl
Note
You should add the new library file name before the isrt.obl file name.
Once you have added the InstallScript code, build and run your installation. When the script is executed, the appropriate dialogs are displayed.
Task
To add support for the LogonInformation dialogs in either an InstallScript or InstallScript MSI project:
1. Navigate to the location in your InstallScript code where you want to insert the LogonInformation dialog set. In most situations, you will add it within OnFirstUIBefore. For example:
Dlg_SdLogon:
SdLogonUserInformation(szTitle, szMsg, szAccount, szPassword);
if (nResult = BACK) goto Dlg_SdWelcome;
2. In InstallScript MSI projects, add the following function so that the Windows Installer properties are set to the same value as the InstallScript global variables. You can add it after calling SdLogonUserInformation.
OnLogonUserSetMsiProperties();
3. On the Build menu, click Settings. The Settings dialog box opens.
4. Click the Compile/Link tab.
5. In the Libraries (.obl) box, enter the name of your new library file (*.obl):
NetApiRT.obl
Note
You should add the new library file name before the isrt.obl file name.
Once you have added the InstallScript code, build and run your installation. When the script is executed, the appropriate dialogs are displayed.