Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 


Sign in to follow this  
kmaheshkumar

How to do unattended installation without any iso modification

Recommended Posts

i want to make a new type of installation procedure for my work but i got stopped that my work place is allowing me to modify the iso files 

 

so i can only do unattended installation and setting by using firstlogoncommands

 

i made some script to do work but everytime my dvddrive wont be with same name

 

I need small help on command line for firstlogoncommands

 

for %i in (c d e f g h i j k l m n o p q r s t u v w x y z) do if exist %i:\sources\sxs" set CDROM=%i:

 

the above command works but is there any possibility that i can start a batch file from the same line?

 

if it is possible i can do all my work without changing any iso files

Share this post


Link to post
Share on other sites

Yes you can start a .cmd/bat but it needs to physically exist.

 

Here are 2 examples that may be helpful.

 

Multiple FirstLogonCommands
http://www.msfn.org/board/topic/139572-ask-your-seven-xml-here/page-4#entry951826

Set variable on 1, command on 2
http://www.msfn.org/board/topic/139572-ask-your-seven-xml-here/page-5#entry953464

Share this post


Link to post
Share on other sites

i had not expected that it can store the variable for another instance and is there any RequiresUserInput to be true or false for this ?

 

 

Edit: Just tested with 

 

it is not working variable is losing after instance

Edited by kmaheshkumar

Share this post


Link to post
Share on other sites

this thing is working

<CommandLine>cmd /c FOR %i IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %i:\Settings.cmd Start %i:\Settings.cmd</CommandLine>

 

instead of set CDROM start a batch file from there itself and change the driveletter using wmic in batch so we can assign runonce with that drive letter and it works perfectly

 

if we changed the driveletter using wmic for the same drive where script is there it will work on the same drive letter until next restart

Edited by kmaheshkumar

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...