SetupBuilder Community  

Go Back   SetupBuilder Community > SetupBuilder Software Installation System > SetupBuilder

Reply
 
Thread Tools Display Modes
  #1  
Old 04-15-2012, 10:35 PM
ender ender is offline
Junior Member
 
Join Date: Apr 2012
Posts: 19
Default Pass Dialog Box information to Batch File

Is there a way to create a batch file using information from a dialog box? I can create a batch file using the “Handle Text File Operation”, however I cannot pass information taken from a dialog box. For example, I want to take the username (%_SB_USERNAME%) gathered from a dialog box, then pass it into my batch file for to run during installation.
Reply With Quote
  #2  
Old 04-16-2012, 12:18 AM
linder linder is offline
Administrator
 
Join Date: Mar 2004
Posts: 2,703
Default Re: Pass Dialog Box information to Batch File

Hello,

Of course, you can do this See attached quick-and-dirty "CreateBatch.sb7" demo project. You can enter the User Name and the installer will create a c:\test\test.bat batch file for you.

Does this help?

Friedrich
Attached Images
 
Attached Files
File Type: zip CreateBatch.zip (60.3 KB, 49 views)
Reply With Quote
  #3  
Old 04-16-2012, 09:56 AM
ender ender is offline
Junior Member
 
Join Date: Apr 2012
Posts: 19
Default Re: Pass Dialog Box information to Batch File

Thank you for the quick response.

I saw something similar in a post last night.

What I need is create a bat file during the installation and pass user information to it. This is for our remote Terminal Server users.

For example:

Create Folder “C:\test”
Text File: Create File “c:\test\test.bat”
Text File: Insert Line “” to “c:\test\test.bat” – userOMAINNAME\%_SB_USERNAME% /pass:PASSWORD

The %_SB_USERNAME% value would come for a Welcome dialog box during the initial run, then pass the variable to the batch script.
Reply With Quote
  #4  
Old 04-16-2012, 10:25 AM
linder linder is offline
Administrator
 
Join Date: Mar 2004
Posts: 2,703
Default Re: Pass Dialog Box information to Batch File

The attached modified .sb7 project creates a test.bat with the following contents:

userOMAINNAME\JoeUser /pass:PASSWORD

"JoeUser" comes from the %_SB_USERNAME% variable. Of course, you can use your own runtime variable here.

Is this what you are looking for?

Friedrich
Attached Images
 
Attached Files
File Type: zip CreateBatch.zip (61.0 KB, 61 views)
Reply With Quote
Reply

Tags
None


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 03:18 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright © 2004-2012 Lindersoft