Jump to content

Script changes after installation!


Recommended Posts

As anybody can see, I'm dealing quiet a long time now with the problem that WPI won't start after Unattended installation. (Created with 7Customizer)

I'm trying to launch WPI after unattended install of Windows 7 but it just won't launch!

This is what I do:

I use the script in "sources\$oem$\$$\install\scripts\setupcomplete.cmd" to launch WPI.

After I made the Image (also with 7Customizer) (and tried a billion other ways) everything is just fine.

When I install it in virtual machine under Vista or under Windows 7, it installs just fine. No problems with the total unattended install.

But here comes the problem: WPI still won't start. And then when I navigate (in the virtual installation) to the ISO image and then navigate to my setupcomplete.cmd and view it, there al all weird symbols in it???? so in the ISO before installation everything is fine with the setupcomplete.cmd but not when Windows 7 is installed.

Why will WPI won't start and what is going on with the setupcomplete.cmd?

Can somebody give me detailled information?

excuse me for my poor English.....and thanks for any reply.

Link to comment
Share on other sites


Is your SetupComplete.cmd in one of the many languages that do not play nicely with text files ?

When you try save your file as a notepad text file, does it complain about unicode characters ?

Edited by MrJinje
Link to comment
Share on other sites

hi could you try running from

first logon

 <FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<CommandLine>cmd /C start /wait %systemdrive%\Install\RUN.cmd</CommandLine>
<Description></Description>
<RequiresUserInput>false</RequiresUserInput>
<Order>1</Order>
</SynchronousCommand>
</FirstLogonCommands>
<Display>

Link to comment
Share on other sites

Is your SetupComplete.cmd in one of the many languages that do not play nicely with text files ?

When you try save your file as a notepad text file, does it complain about unicode characters ?

Thanks for the answer.

No, it does not ask any questions about Unicode, The language is Dutch.

I save it in notepad just as .cmd

Link to comment
Share on other sites

hi could you try running from

first logon

 <FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<CommandLine>cmd /C start /wait %systemdrive%\Install\RUN.cmd</CommandLine>
<Description></Description>
<RequiresUserInput>false</RequiresUserInput>
<Order>1</Order>
</SynchronousCommand>
</FirstLogonCommands>
<Display>

Thanks for the answer.

Where do I have to put this text? where does it need to be placed in the .XML file? And with this command I don't have to use setupcomplete.cmd anymore?

And last question: Do I have to modify above text to my own installation or can I just copy/paste it?

Link to comment
Share on other sites

As anybody can see, I'm dealing quiet a long time now with the problem that WPI won't start after Unattended installation. (Created with 7Customizer)

I'm trying to launch WPI after unattended install of Windows 7 but it just won't launch!

This is what I do:

I use the script in "sources\$oem$\$$\install\scripts\setupcomplete.cmd" to launch WPI.

After I made the Image (also with 7Customizer) (and tried a billion other ways) everything is just fine.

When I install it in virtual machine under Vista or under Windows 7, it installs just fine. No problems with the total unattended install.

But here comes the problem: WPI still won't start. And then when I navigate (in the virtual installation) to the ISO image and then navigate to my setupcomplete.cmd and view it, there al all weird symbols in it???? so in the ISO before installation everything is fine with the setupcomplete.cmd but not when Windows 7 is installed.

Why will WPI won't start and what is going on with the setupcomplete.cmd?

Can somebody give me detailled information?

excuse me for my poor English.....and thanks for any reply.

Maybe you have made a mistake in your post,

but the folder SCRIPTS is in

\sources\$OEM$\$$\SETUP\SCRIPTS

and inside is SetupComplete.cmd

and also if you use WPI.bat

Link to comment
Share on other sites

Maybe you have made a mistake in your post,

but the folder SCRIPTS is in

\sources\$OEM$\$$\SETUP\SCRIPTS

and inside is SetupComplete.cmd

and also if you use WPI.bat

That is correct, I made a mistake in my post.

And I am not using WPI.bat because everybody tells me that is not important to run WPI after install, or isn't that true?

Edited by crunch81
Link to comment
Share on other sites

As you want.

You can install your applications with WPI after the complete installation of Windows 7.

Or lauch automatically WPI with WPI.bat and SetupComplete.cmd in the folder SCRIPTS.

I have tested succesfully like I tell you in a post.

I hope that will help you.

Link to comment
Share on other sites

hi to use first logon

this is my autonatted xml

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="windowsPE">
<component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SystemLocale>en-us</SystemLocale>
<UserLocale>en-us</UserLocale>
<UILanguage>en-US</UILanguage>
<UILanguageFallback>en-us</UILanguageFallback>
<InputLocale>0409:00000409</InputLocale>
</component>
<component name="Microsoft-Windows-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<UserData>
<ProductKey>
<Key>productkey</Key>
<WillShowUI>OnError</WillShowUI>
</ProductKey>
<Organization>owner</Organization>
<FullName>owner</FullName>
<AcceptEula>true</AcceptEula>
</UserData>
<ImageInstall>
<OSImage>
<InstallFrom>
<MetaData wcm:action="add">
<Key>/IMAGE/NAME</Key>
<Value>Windows 7 ULTIMATE</Value>
</MetaData>
</InstallFrom>
</OSImage>
</ImageInstall>
<Display>
<HorizontalResolution>1024</HorizontalResolution>
<VerticalResolution>768</VerticalResolution>
<ColorDepth>32</ColorDepth>
</Display>
</component>
</settings>
<settings pass="oobeSystem">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<UserAccounts>
<LocalAccounts>
<LocalAccount wcm:action="add">
<Name>owner</Name>
<Group>Administrators</Group>
<Password>
<PlainText>false</PlainText>
<Value>UABhAHMAcwB3AG8AcgBkAA==</Value>
</Password>
</LocalAccount>
</LocalAccounts>
</UserAccounts>
<OOBE>
<HideEULAPage>true</HideEULAPage>
<NetworkLocation>Home</NetworkLocation>
<ProtectYourPC>3</ProtectYourPC>
<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
</OOBE>
<RegisteredOrganization>owner</RegisteredOrganization>
<RegisteredOwner>owner</RegisteredOwner>
<FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<CommandLine>cmd /C start /wait %systemdrive%\Install\RUN.cmd</CommandLine>
<Description></Description>
<RequiresUserInput>false</RequiresUserInput>
<Order>1</Order>
</SynchronousCommand>
</FirstLogonCommands>
<Display>
<ColorDepth>32</ColorDepth>
<HorizontalResolution>1024</HorizontalResolution>
<VerticalResolution>768</VerticalResolution>
</Display>
<FolderLocations>
<ProfilesDirectory>D:\Users</ProfilesDirectory>
</FolderLocations>
</component>
<component name="Microsoft-Windows-International-Core" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<UILanguage>en-US</UILanguage>
<UserLocale>en-GB</UserLocale>
<InputLocale>0809:00000809</InputLocale>
</component>
</settings>
<settings pass="specialize">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<AutoLogon>
<Enabled>true</Enabled>
<Username>owner</Username>
<Password>
<Value>UABhAHMAcwB3AG8AcgBkAA==</Value>
<PlainText>false</PlainText>
</Password>
<LogonCount>9999999</LogonCount>
</AutoLogon>
<TimeZone>GMT Standard Time</TimeZone>
<ComputerName>owner</ComputerName>
</component>
</settings>
<cpi:offlineImage cpi:source="wim:j:/vistawork/dvd/sources/install.wim#Windows 7 ULTIMATE" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

my cmd file is in

DVD\SOURCES\$OEM$\$1\INSTALL\run.cmd

remove this if you want your users on c:

	<FolderLocations>
<ProfilesDirectory>D:\Users</ProfilesDirectory>
</FolderLocations>

with this you need a d:

Edited by bobthenob
Link to comment
Share on other sites

As you want.

You can install your applications with WPI after the complete installation of Windows 7.

Or lauch automatically WPI with WPI.bat and SetupComplete.cmd in the folder SCRIPTS.

I have tested succesfully like I tell you in a post.

I hope that will help you.

Yes, that is true and already tried that (Tried it the whole day :) ) I followed the steps what you said, but when the unattended disk is installed it will change my scripts to weird symbols. I can only test it in a virtual machine. With me WPI will not start after the installation.

such a small problem, I find very little topics about this problem. It is strange that it will start with everybody except me. I'm missing something I assume

Edited by crunch81
Link to comment
Share on other sites

hi to use first logon

this is my autonatted xml

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="windowsPE">
<component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SystemLocale>en-us</SystemLocale>
<UserLocale>en-us</UserLocale>
<UILanguage>en-US</UILanguage>
<UILanguageFallback>en-us</UILanguageFallback>
<InputLocale>0409:00000409</InputLocale>
</component>
<component name="Microsoft-Windows-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<UserData>
<ProductKey>
<Key>productkey</Key>
<WillShowUI>OnError</WillShowUI>
</ProductKey>
<Organization>owner</Organization>
<FullName>owner</FullName>
<AcceptEula>true</AcceptEula>
</UserData>
<ImageInstall>
<OSImage>
<InstallFrom>
<MetaData wcm:action="add">
<Key>/IMAGE/NAME</Key>
<Value>Windows 7 ULTIMATE</Value>
</MetaData>
</InstallFrom>
</OSImage>
</ImageInstall>
<Display>
<HorizontalResolution>1024</HorizontalResolution>
<VerticalResolution>768</VerticalResolution>
<ColorDepth>32</ColorDepth>
</Display>
</component>
</settings>
<settings pass="oobeSystem">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<UserAccounts>
<LocalAccounts>
<LocalAccount wcm:action="add">
<Name>owner</Name>
<Group>Administrators</Group>
<Password>
<PlainText>false</PlainText>
<Value>UABhAHMAcwB3AG8AcgBkAA==</Value>
</Password>
</LocalAccount>
</LocalAccounts>
</UserAccounts>
<OOBE>
<HideEULAPage>true</HideEULAPage>
<NetworkLocation>Home</NetworkLocation>
<ProtectYourPC>3</ProtectYourPC>
<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
</OOBE>
<RegisteredOrganization>owner</RegisteredOrganization>
<RegisteredOwner>owner</RegisteredOwner>
<FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<CommandLine>cmd /C start /wait %systemdrive%\Install\RUN.cmd</CommandLine>
<Description></Description>
<RequiresUserInput>false</RequiresUserInput>
<Order>1</Order>
</SynchronousCommand>
</FirstLogonCommands>
<Display>
<ColorDepth>32</ColorDepth>
<HorizontalResolution>1024</HorizontalResolution>
<VerticalResolution>768</VerticalResolution>
</Display>
<FolderLocations>
<ProfilesDirectory>D:\Users</ProfilesDirectory>
</FolderLocations>
</component>
<component name="Microsoft-Windows-International-Core" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<UILanguage>en-US</UILanguage>
<UserLocale>en-GB</UserLocale>
<InputLocale>0809:00000809</InputLocale>
</component>
</settings>
<settings pass="specialize">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<AutoLogon>
<Enabled>true</Enabled>
<Username>owner</Username>
<Password>
<Value>UABhAHMAcwB3AG8AcgBkAA==</Value>
<PlainText>false</PlainText>
</Password>
<LogonCount>9999999</LogonCount>
</AutoLogon>
<TimeZone>GMT Standard Time</TimeZone>
<ComputerName>owner</ComputerName>
</component>
</settings>
<cpi:offlineImage cpi:source="wim:j:/vistawork/dvd/sources/install.wim#Windows 7 ULTIMATE" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

my cmd file is in

DVD\SOURCES\$OEM$\$1\INSTALL\run.cmd

remove this if you want your users on c:

	<FolderLocations>
<ProfilesDirectory>D:\Users</ProfilesDirectory>
</FolderLocations>

with this you need a d:

*Is it important to change $$ to $1 or not? and Why? Will it work without that?

*How does your run.CMD lookes like?

If I want to create a .cmd file to start WPI to work with firstlogoncommands, how does it have to look?

Link to comment
Share on other sites

As you want.

You can install your applications with WPI after the complete installation of Windows 7.

Or lauch automatically WPI with WPI.bat and SetupComplete.cmd in the folder SCRIPTS.

I have tested succesfully like I tell you in a post.

I hope that will help you.

Yes, that is true and already tried that (Tried it the whole day :) ) I followed the steps what you said, but when the unattended disk is installed it will change my scripts to weird symbols. I can only test it in a virtual machine. With me WPI will not start after the installation.

such a small problem, I find very little topics about this problem. It is strange that it will start with everybody except me. I'm missing something I assume

Yes it's strange.What version of Windows do you have? You are working with Windows XP or Vista or Windows 7?

In the folder $OEM$ you can create two folders \$$ suit to WINDOWS

and \$1 suit to %systemdrive% (Windows partition, generally partition C:\)

All in $OEM$. You can see the attachments.

You can also try the method posted by bobthenob.

Edited by myselfidem
Link to comment
Share on other sites

Yes it's strange.What version of Windows do you have? You are working with Windows XP or Vista or Windows 7?

In the folder $OEM$ you can create two folders \$$ suit to WINDOWS

and \$1 suit to %systemdrive% (Windows partition, generally partition C:\)

All in $OEM$. You can see the attachments.

I am using Windows 7 Basic 32-bit. I am making it unattended with 7Customizer.

So you have the exact same unattended image as me? You have the setupcomplete.cmd and the WPI.bat in the $OEM$\$$\SETUP\SCRIPTS folder under "SOURCES"?

And you have nothing else in your XML file? No firstlogon commands or Synchronys Commands?

Btw.: really appreciate the help.......

Link to comment
Share on other sites

Yes it's strange.What version of Windows do you have? You are working with Windows XP or Vista or Windows 7?

In the folder $OEM$ you can create two folders \$$ suit to WINDOWS

and \$1 suit to %systemdrive% (Windows partition, generally partition C:\)

All in $OEM$. You can see the attachments.

I am using Windows 7 Basic 32-bit. I am making it unattended with 7Customizer.

So you have the exact same unattended image as me? You have the setupcomplete.cmd and the WPI.bat in the $OEM$\$$\SETUP\SCRIPTS folder under "SOURCES"?

And you have nothing else in your XML file? No firstlogon commands or Synchronys Commands?

Btw.: really appreciate the help.......

J have nothing else in my Autounattend.xml file, no FirtsLogonCommands, no Syncronys Commands. Autounattend.xml is made wizh 7Customizer and I have add nothing else.

You can see in attachment my Autounattend.xml file.

I have put my folder $OEM$ into sources, but you can also put $OEM$ at the root of the disk.

J found some help at the site WPI:

http://www.wpiw.net/The_Dark_Side/help.html

You can find the folder $oem$ and you need no other cmd or bat files.

--------------------------------------------------------------------

Here is a quick start package that will set WPI to start after first logon of a Vista installation. Simply place this sources folder at the root of your disk.

This is for all versions of Windows Vista!

Sources folder

Contents of the sources archive:

setupcomplete.cmd

(It has to be buried several folders deep so I already did that for you)

------------------------------------------------------------------

You can find the SetupComplete.cmd allready write.

For this method you don't need to add the FirstLogonCommands for run WPI.

Maybe you can send a post to Mritter.

J hope that will help you.

Edited by myselfidem
Link to comment
Share on other sites

hi i run sevaral things from my run.cmd

i then run a autoit file wich has a pause so it waits till the descktop is loaded

CLS
@echo off

Echo.....Installing things So You dont have too
start /wait regedit /s %AppsRoot%\install\REGTWEAKS.REG

Echo..........Install Firefox Browser
start /wait %AppsRoot%\install\Firefox\Firefox.exe

Echo..........Install Flash Plugin For Firefox
start /wait %AppsRoot%\install\Flash\install_flash_player.exe /s
start /wait %AppsRoot%\install\Flash\install_flash_player_ax.exe /s

Echo..........Install Avg Virus Software
start /wait %AppsRoot%\install\Avg\avg.exe /hide /no_welcome /REMOVE_FEATURE fea_AVG_SafeSurf /REMOVE_FEATURE fea_AVG_SafeSearch /NOAVGTOOLBAR

Echo..........Install Foxit Pdf Reader
start /wait %AppsRoot%\install\Foxit\FOXITAU.EXE


Echo..........Install Winrar
start /wait %AppsRoot%\INSTALL\WINRAR\WINRAR.EXE


Echo..........InstallOffice 2007
ECHO..........Take A while Please Be Patient
start /wait %AppsRoot%\install\office2007\setup.exe /config custom-uA.XML



Echo..........Install infraBurn
start /wait %AppsRoot%\install\infrarecorder\ir050.exe /S


start %AppsRoot%\autoit\wait.EXE

Echo..........Deleting Temporary Files
start %AppsRoot%\Fix\Cleanup.bat

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...