Jump to content

Who can help me to chek my batch_file.cmd and winnt.SIF?


Recommended Posts

I used xp64 OS.My batch _file.cmd is below:


CLS
@echo off
TITLE Windows XP64 SP1 - Unattended Installation

ECHO.
ECHO Over the next few minutes you will see automated installations
ECHO of various sofware applicationsã€Âwindows updatesã€Âand registry

ECHO.
ECHO Removing Wallpapers and Screensavers...
DEL "%systemroot%\*.bmp"
DEL "%systemroot%\Web\Wallpaper\*.jpg"
DEL "%systemroot%\system32\dllcache\*.scr"
DEL "%systemroot%\system32\*.scr"

ECHO.
ECHO Removing useless shortcuts...
DEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Windows Update.lnk"
DEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Set Program Access and Defaults.lnk"
DEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Windows Catalog.lnk"

ECHO.
ECHO Installing MSN Messenger 8.1
ECHO Please wait...

start /wait %systemdrive%\install\MSN\MsnMsgs.msi /qn"

ECHO.
ECHO Installing Office2003XP
ECHO Please wait...

start /wait %systemdrive%\install\Office2003XP\PRO11.msi /QB

ECHO.
ECHO Installing daemon403-x64
ECHO Please wait...

start /wait %systemdrive%\install\applications\daemon403-x64\daemon403.exe /qb REBOOT=Suppress

ECHO.
ECHO Installing alcohol
ECHO Please wait...

start /wait %systemdrive%\install\applications\alcohol\setup.exe /qn Reboot=Suppress

ECHO.
ECHO Deleting Temp Installation Files...
RD /S /Q %systemdrive%\Drivers
RD /S /Q %systemdrive%\install


EXIT



My winnt.SIF is below:

; Generated by nLite 1.0.1

[Data]
AutomaticUpdates = "Yes"
Autopartition = 0
MsDosInitiated = 0
UnattendedInstall = "Yes"

[Unattended]
UnattendMode = FullUnattended
UnattendSwitch = "Yes"
OemPreinstall = "Yes"
OemSkipEula = "Yes"
FileSystem = *
WaitForReboot = "No"
NoWaitAfterTextMode = 1
NoWaitAfterGUIMode = 1
DriverSigningPolicy = Ignore
NonDriverSigningPolicy = Ignore

[SetupData]
OSLoadOptionsVar = "/noexecute=alwaysoff"

[Display]
Xresolution = 800
Yresolution = 600
BitsPerPel = 32
Vrefresh = 75

[SystemRestore]

[SetupParams]
SkipMissingFiles = "No"

[GuiUnattended]
EncryptedAdminPassword = "No"
AdminPassword = *
TimeZone = 220
OEMSkipRegional = 1
OemSkipWelcome = 1

[Components]

[UserData]
ProductKey = "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX"
ComputerName = HOME
FullName = "Patrick final version"
OrgName = "Final Version"

[RegionalSettings]
LanguageGroup = 9
SystemLocale = "0404"
UserLocale = "0404"
UserLocale_DefaultUser = "0404"
InputLocale = "0404:e0020404"
InputLocale_DefaultUser = "0404:e0020404"

[Networking]
InstallDefaultComponents = "Yes"

[Identification]
JoinWorkgroup = "WORKGROUOP"

[GuiRunOnce]
%systemdrive%\install\start.cmd

I can not install automatically my applications after i create those script.Could someone help me to correct my script?

Edited by PatrickEmpire
Link to comment
Share on other sites


CODE Tags People, CODE tags!!

CLS
@echo off
TITLE Windows XP64 SP1 - Unattended Installation

ECHO.
ECHO Over the next few minutes you will see automated installations
ECHO of various sofware applicationsã€Âwindows updatesã€Âand registry

ECHO.
ECHO Removing Wallpapers and Screensavers...
DEL "%systemroot%\*.bmp" /f /s /q
DEL "%systemroot%\Web\Wallpaper\*.jpg" /f /s /q
DEL "%systemroot%\system32\dllcache\*.scr" /f /s /q
DEL "%systemroot%\system32\*.scr" /f /s /q

ECHO.
ECHO Removing useless shortcuts...
DEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Programs\Windows Update.lnk" /f /s /q
DEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Programs\Set Program Access and Defaults.lnk" /f /s /q
DEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Programs\Windows Catalog.lnk" /f /s /q

ECHO.
ECHO Installing MSN Messenger 8.1
ECHO Please wait...

start /wait %systemdrive%\install\MSN\MsnMsgs.msi /qn

ECHO.
ECHO Installing Office2003XP
ECHO Please wait...

start /wait %systemdrive%\install\Office2003XP\PRO11.msi /QB

ECHO.
ECHO Installing daemon403-x64
ECHO Please wait...

start /wait %systemdrive%\install\applications\daemon403-x64\daemon403.exe /qb REBOOT=Suppress

ECHO.
ECHO Installing alcohol
ECHO Please wait...

start /wait %systemdrive%\install\applications\alcohol\setup.exe /qn Reboot=Suppress

ECHO.
ECHO Deleting Temp Installation Files...
RD /S /Q %systemdrive%\Drivers
RD /S /Q %systemdrive%\install


EXIT

Edited by T D
Link to comment
Share on other sites

[Data]
AutomaticUpdates = "Yes"
Autopartition = 0
MsDosInitiated = 0
UnattendedInstall = "Yes"

[Unattended]
UnattendMode = FullUnattended
UnattendSwitch = "Yes"
OemPreinstall = "Yes"
OemSkipEula = "Yes"
FileSystem = *
WaitForReboot = "No"
NoWaitAfterTextMode = 1
NoWaitAfterGUIMode = 1
DriverSigningPolicy = Ignore
NonDriverSigningPolicy = Ignore

[SetupData]
OSLoadOptionsVar = "/noexecute=alwaysoff"

[Display]
Xresolution = 800
Yresolution = 600
BitsPerPel = 32
Vrefresh = 75

[SystemRestore]

[SetupParams]
SkipMissingFiles = "No"

[GuiUnattended]
EncryptedAdminPassword = "No"
AdminPassword = *
TimeZone = 220
OEMSkipRegional = 1
OemSkipWelcome = 1

[Components]

[UserData]
ProductKey = "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX"
ComputerName = HOME
FullName = "Patrick final version"
OrgName = "Final Version"

[RegionalSettings]
LanguageGroup = 9
SystemLocale = "0404"
UserLocale = "0404"
UserLocale_DefaultUser = "0404"
InputLocale = "0404:e0020404"
InputLocale_DefaultUser = "0404:e0020404"

[Networking]
InstallDefaultComponents = "Yes"

[Identification]
JoinWorkgroup = "WORKGROUOP"

[GuiRunOnce]
%systemdrive%\install\start.cmd

Nothing wrong in your WINNT.SIF!

I just don't know what this is: OSLoadOptionsVar = "/noexecute=alwaysoff"

Edited by mazin
Link to comment
Share on other sites

What is CODE Tags People, CODE tags!!
When you are posting large chunks of code you should be, as stated in the announcement, using code tags.

To do that you type

First line

Second line

Third line

Fourth line

Fifth line

Sixth line

Seventh line - This one is a relatively long line which could wrap onto the next line possibly spoiling the flow of text

Eighth line

Ninth line

Tenth line

Eleventh line

Twelfth line

This will produce this

First line
Second line
Third line
Fourth line
Fifth line
Sixth line
Seventh line - This one is a relatively long line which could wrap onto the next line possibly spoiling the flow of text
Eighth line
Ninth line
Tenth line
Eleventh line
Twelfth line

Edited by Yzöwl
Link to comment
Share on other sites

[Data]


[GuiRunOnce]
%systemdrive%\install\start.cmd

Nothing wrong in your WINNT.SIF!

I just don't know what this is: OSLoadOptionsVar = "/noexecute=alwaysoff"

I don't know OSLoadOptionsVar = "/noexecute=alwaysoff" as well.

I use nlite to create my winnt.sif, but i can not install automatically my applications.I don't know why?

in my $OEM$ folder, i have cmdlines.txt and RunOnceEx.cmd

cmdlines.txt:

[COMMANDS]
"RunOnceEx.cmd"


RunOnceEx.cmd:

[CODE]cmdow @ /HID
@echo off

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D \"Installing Applications \" /f


REG ADD %KEY%\005 /VE /D \"MSN Messenger 8.1\" /f
REG ADD %KEY%\005 /V 1 /D \"%systemdrive%\install\MsnMsgs.msi /qn\" /f


REG ADD %KEY%\010 /VE /D \"Office 2003 \" /f
REG ADD %KEY%\010 /V 1 /D \"%systemdrive%\install\Office 2003\PRO11.msi /QB\" /f



REG ADD %KEY%\060 /VE /D \"Alcohol 120 \" /f
REG ADD %KEY%\060 /V 1 /D \"%systemdrive%\install\alcohol\setup.exe /qn Reboot=Suppress\" /f
REG ADD %KEY%\060 /V 2 /D "REGEDIT /S %systemdrive%\install\alcohol\register.reg"

REG ADD %KEY%\065 /VE /D \"Cleaning Up and Rebooting\" /f
REG ADD %KEY%\065 /V 1 /D \"%systemdrive%\install\cleanup.cmd\" /f

EXIT

Untile now, have you found some problems about my script? I have put all of my office 2003 in E:\XPCD\$OEM$\$1\install\Application\Office2003XP , but nothing happen!!! who can help me to find why those applications can not install automatically

Edited by PatrickEmpire
Link to comment
Share on other sites

If you check your text against my example, you will see that you have forgotten to use the 'forward slash' in your closing code tag. You may also notice that your coded text contains far more than a dozen lines and would have been a more likely candidate for codebox tags!

<Edit>

Okay it appears that you've done it whilst I was composing the reply.

...and thank you usually works well in most cultures!

</Edit>

<Edit2>

all the install lines in your cmd file are incorrect

@CMDOW @ /HID ||@ECHO OFF

SET "KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx"

REG ADD %KEY% /V TITLE /D "Installing Applications" /F

REG ADD %KEY%\005 /VE /D "MSN Messenger 8.1" /F
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\MsnMsgs.msi /qn" /F

REG ADD %KEY%\010 /VE /D "Office 2003" /f
REG ADD %KEY%\010 /V 1 /D "\"%systemdrive%\install\Office 2003\PRO11.msi\" /QB" /F

REG ADD %KEY%\060 /VE /D "Alcohol 120" /F
REG ADD %KEY%\060 /V 1 /D "%systemdrive%\install\alcohol\setup.exe /qn Reboot=Suppress" /F
REG ADD %KEY%\060 /V 2 /D "REGEDIT /S %systemdrive%\install\alcohol\register.reg"

REG ADD %KEY%\065 /VE /D "Cleaning Up and Rebooting" /F
REG ADD %KEY%\065 /V 1 /D "%systemdrive%\install\cleanup.cmd" /F

EXIT

</Edit2>

Edited by Yzöwl
Link to comment
Share on other sites

I don't know OSLoadOptionsVar = "/noexecute=alwaysoff" as well.

Here

I'm not against using nLite by any means, but you should try to understand what goes on behind the scene as well.

These don't match, do they?

E:\XPCD\$OEM$\$1\install\Application\Office2003XP

%systemdrive%\install\Office2003XP\PRO11.msi

Edited by Takeshi
Link to comment
Share on other sites

It also seems odd that you are suggesting to install

  1. Office 2003 from \install\Office 2003
    and
  2. Alcohol 120 from \install\alcohol
    but
  3. MSN Messenger 8.1 from \install

In order to successfully troubleshhot I'd suggest that you remain consistent in your structure and order.

Link to comment
Share on other sites

I don't know OSLoadOptionsVar = "/noexecute=alwaysoff" as well.

Here

I'm not against using nLite by any means, but you should try to understand what goes on behind the scene as well.

These don't match, do they?

E:\XPCD\$OEM$\$1\install\Application\Office2003XP

%systemdrive%\install\Office2003XP\PRO11.msi

Weather i have to change to this:

E:\XPCD\$OEM$\$1\install\Application\Office2003XP

%systemdrive%\install\Application\Office2003XP\PRO11.msi

Link to comment
Share on other sites

All of my responses so far have provided you directly with positive answers to aid in you successfully achieving your goals on this forum. You asked for help from more knowledgable people than yourself, they freely offered it and you've shown your appreciation by ignoring that help.

Link to comment
Share on other sites

PatrickEmpire,

As I suggested in your prior thread asking for help you really need to work on your project in steps. You are trying to do everything right away and when it doesn't work you ask for help yet ignore the help you get.

You need to realize that creating an unattended setup that is going to do all the things that you are looking to do is going to take quite some time to develop. As I said before, don't jump in with trying to do several application installs until after you have mastered installing just a single app. Yes, it takes more time, but once you have your first app's install working the rest are that much easier.

You're jumping all over the place looking for someone to give you some magical answer that's going to make it all work for you. Go back through the tutorials found here: http://unattended.msfn.org it explains everything in nice step by step guides. It's the documentation that everyone here has been referencing for years. Pick a method that you want to use to install your apps with and start with a single application. Once you have that working, then move on to add more applications.

Again, follow the documentation here -> http://unattended.msfn.org you have to learn what is going on behind the scenes if you ever hope to be able to troubleshoot the problems you encounter.

Link to comment
Share on other sites

PatrickEmpire,

As I suggested in your prior thread asking for help you really need to work on your project in steps. You are trying to do everything right away and when it doesn't work you ask for help yet ignore the help you get.

You need to realize that creating an unattended setup that is going to do all the things that you are looking to do is going to take quite some time to develop. As I said before, don't jump in with trying to do several application installs until after you have mastered installing just a single app. Yes, it takes more time, but once you have your first app's install working the rest are that much easier.

You're jumping all over the place looking for someone to give you some magical answer that's going to make it all work for you. Go back through the tutorials found here: http://unattended.msfn.org it explains everything in nice step by step guides. It's the documentation that everyone here has been referencing for years. Pick a method that you want to use to install your apps with and start with a single application. Once you have that working, then move on to add more applications.

Again, follow the documentation here -> http://unattended.msfn.org you have to learn what is going on behind the scenes if you ever hope to be able to troubleshoot the problems you encounter.

I have go to several weeks ago. And i have follow the way it teachs me, but useless.In the beginning , i haven't try any application by using nlite, it work successeful. Then integrate few applications to try in VMware, but it doesn't work.I know that i don't have to put batch file.cmd and runonce to run at the same time, but i put the two scrip at the same time because it is useless in turorial , so i try to make some differents way than http://unattended.msfn.org .Untile now, i have only successful in MSN by using script with nlite , but i don't know why it has successe. I use the same way to integrate as i use in MSN, but nothing happen. I think maybe i have ignored something .In fact, i have read http://unattended.msfn.org several times.Untile now, the only way i didn't try is that : Wheather i have to put GuiRunOnce in $OEM$ and Winnt.sif. I have put GuiRunOnce in $OEM$ instead of Winnt.sif , but it now works. I have also put GuiRunOnce in Winnt.sif but not in $OEM$, but i failure again. I will go throug to

to master it.Perhaps i have some misunderstoods in the tutorial.After all, the tutorial isn't my native language.

Man, I got lost wit your scripts. How come you install office from a CMD and from RunOnceEx at the same time?

I install office from a CMD and from RunOnceEx at the same time because it doesn't work in tutorial.I have used the simple way which http://unattended.msfn.org has teach, but it doesn't work.In http://unattended.msfn.org ,it teach me put the content of my Office CD in $OEM$\$1$\install\Applications\Office 2003 , but it is useless. I have put the script which the link give me,but useless.Finally , i put CMD and RunOnceEx at the same time.

All of my responses so far have provided you directly with positive answers to aid in you successfully achieving your goals on this forum. You asked for help from more knowledgable people than yourself, they freely offered it and you've shown your appreciation by ignoring that help.

If i let you feel ignoring that help , i am so sorry, but i have follow the way some people teache me. :blushing:

Link to comment
Share on other sites

I install office from a CMD and from RunOnceEx at the same time because it doesn't work in tutorial.I have used the simple way which http://unattended.msfn.org has teach, but it doesn't work.In http://unattended.msfn.org ,it teach me put the content of my Office CD in $OEM$\$1$\install\Applications\Office 2003 , but it is useless. I have put the script which the link give me,but useless.Finally , i put CMD and RunOnceEx at the same time.

I too am having a problem with the last part of the tutorial, and the quide is in my native language.

This command will perform a silent installation of Office XP using the Unattended.MST file you created in the Custom Installation Wizard to set your customized options. But we don't want to use the exact command shown above as this wouldn't exist when installing from a CD, so change:

TRANSFORMS=C:\XPCD\$\$1\install\Applications\OfficeXP\Unattended.MST /qb-

to...

TRANSFORMS=Unattended.MST /qb-

You cannot change this in the window... how DO you change it?

Lastly,

As you read at the end of Section 3, we needed to change the path in the TRANSFORM syntax in order for it to function. Below are the full batch commands you can use, so add these lines to your batch file:

ECHO.

ECHO Installing Office XP Professional with Frontpage

ECHO Please wait...

start /wait %systemdrive%\install\Applications\OfficeXP\setup.exe TRANSFORMS=Unattended.MST /qb-

That's it!

That's it... BUT WHERE DO YOU PUT THIS!!??!?!!?
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...