MSFN Forum: Unattended Installation of Apps Failed - Why? - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Unattended Installation of Apps Failed - Why? Rate Topic: -----

#1 User is offline   playahater 

  • Newbie
  • Group: Members
  • Posts: 15
  • Joined: 01-October 04

Posted 06 November 2004 - 07:24 PM

OK .. I have a few problems ... BIG problems ... :(
I have made my own UI and everything was going well untill XP logs on for the first time and when it should start RunOnceEx.cmd and start installing the apps it said to me that the path to applications and regtweak isn`t seem to be valid ..
I have made an UI which installs all apps from CD and it seems that installation can`t find those applications ... i have btw followed the Unattended PDF guide and did exactly what was written about choosing the UI to install all apps from CD, and at the first install xp was searching for applications on my hdd on D partition because the first line in RunOnceEx.cmd is "IF EXIST D:\CD.txt set CDROM=D:" ...
But then i have deleted the first two lines and then the first line was "IF EXIST F:\CD.txt set CDROM=F:", and off course my cd rom was F and that was OK but RunOnceEx.cmd still couldn`t install apps and registry because the paths were invalid ( "F:\ Software\Diskeeper\Diskeeper.msi" couldn`t be found ) ... i have put the "CD.txt" on cd ( as shown on the picture below ) but didn`t put anything in the file ..
what did i do wrong ... ??? :unsure:
I used the Microsoft Virtual Machine Trial.
Can anyone, PLEASE help me to solve this problem ... i have attached here the screenshot of the directories of my UI and RunOnceEx.cmd ... please help.

Thanx in advance ...
:hello:

cmdow @ /HID
@echo off

IF EXIST D:\CD.txt set CDROM=D:
IF EXIST E:\CD.txt set CDROM=E:
IF EXIST F:\CD.txt set CDROM=F:
IF EXIST G:\CD.txt set CDROM=G:
IF EXIST H:\CD.txt set CDROM=H:
IF EXIST I:\CD.txt set CDROM=I:
IF EXIST J:\CD.txt set CDROM=J:

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

REG ADD %KEY% /V TITLE /D "Installing Applications :::: Made By Playahater" /f

REG ADD %KEY%\015 /VE /D "Diskeeper 9.0" /f
REG ADD %KEY%\015 /V 1 /D "%CDROM%\Software\diskeeper\Diskeeper.msi /QB" /f

REG ADD %KEY%\020 /VE /D "Flashget 1.65" /f
REG ADD %KEY%\020 /V 1 /D "%CDROM%\Software\flashget\fgf165.exe /S" /f

REG ADD %KEY%\025 /VE /D "TweakUI Powertoy" /f
REG ADD %KEY%\025 /V 1 /D "%CDROM%\Software\Powertoys\TweakUi.exe /qb" /f

REG ADD %KEY%\030 /VE /D "WinRar 3.40" /f
REG ADD %KEY%\030 /V 1 /D "%CDROM%\Software\WinRar 3.40\WinRAR.v3.40.exe /s /W" /f

REG ADD %KEY%\040 /VE /D "Windows Media Player 10" /f
REG ADD %KEY%\040 /V 1 /D "%CDROM%\Software\wmp10\mp10setup.exe /q:A /c:\"setup_wm.exe /Q /R:N /DisallowSystemRestore\"" /f

REG ADD %KEY%\045 /VE /D ".NET Framework v1.1" /f
REG ADD %KEY%\045 /V 1 /D "%CDROM%\Software\NetFramework\netfx.msi" /f

REG ADD %KEY%\050 /VE /D "Adobe Acrobat Reader 6.01" /f
REG ADD %KEY%\050 /V 1 /D "%CDROM%\Software\Adobe Reader\AdbeRdr60_enu_full.exe -p"-s /v\"/qn\""

REG ADD %KEY%\050 /VE /D "IrfanView 3.91 with Plugins" /f
REG ADD %KEY%\050 /V 1 /D "%CDROM%\Software\iview391\iview391.exe /silent /desktop=0 /group=1 /allusers=0 /assoc=1 /f
REG ADD %KEY%\050 /V 2 /D "%CDROM%\Software\iview391\IrfanView-all_plugins.exe /silent" /f

REG ADD %KEY%\060 /VE /D "Winamp 5.05 Pro Full" /f
REG ADD %KEY%\060 /V 1 /D "%CDROM%\Software\winamp\Winamp.msi\" /qn Xname="xxxxxxxxxxxxx" Xkey="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" XMODERNSKIN=1 XSkinsetting-MMD3 Xaudio=1 \" /f

REG DELETE=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v WinampAgent /f

REG ADD %KEY%\100 /VE /D "Importing Registry Tweaks" /f
REG ADD %KEY%\100 /V 1 /D "REGEDIT /S %CDROM%\Software\RegTweaks.reg" /f

REG ADD %KEY%\110 /VE /D "Cleaning Up and Rebooting" /f
REG ADD %KEY%\110 /V 1 /D "%CDROM%\Software\cleanup.cmd" /f

EXIT

Attached File(s)

  • Attached File  image.jpg (55.35K)
    Number of downloads: 100



#2 User is offline   Alanoll 

  • CODE tags people, CODE tags!
  • Group: Patrons
  • Posts: 5,496
  • Joined: 25-September 03

Posted 06 November 2004 - 07:39 PM

have you tried REMOVING the trailing spaced after assing CDROM?

you have
SET CDROM=D:_ with the _ representing the SPACE

#3 User is offline   Vadikan 

  • MSFT MVP Windows Expert: Consumers
  • PipPipPip
  • Group: Members
  • Posts: 349
  • Joined: 22-February 04
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 07 November 2004 - 01:58 AM

Try an alternative script of setting %CDROM%.
FOR %%d 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 %%d\CD.txt SET CDROM=%%d

BTW, you don't have to go through the whole unattended installation process in order to test RunOnceEx. Just run RunOnceEx.cmd on your virtual machine and reboot.

#4 User is offline   playahater 

  • Newbie
  • Group: Members
  • Posts: 15
  • Joined: 01-October 04

Posted 07 November 2004 - 11:26 AM

Wooohoooo ... Thanx a LOT ... :thumbup

I`ll check out the combination with VAD`s code ...
I think that everything will be OK this time ...

I`ll post reply when i try out ....

Thanx ... :D

:hello:

#5 User is offline   maxXPsoft 

  • MSFN Master
  • Group: Developers
  • Posts: 2,519
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 07 November 2004 - 04:23 PM

Alanoll, on Nov 6 2004, 07:39 PM, said:

after assing

Alanoll
I didn't know you spoke that way, :lol:

#6 User is offline   playahater 

  • Newbie
  • Group: Members
  • Posts: 15
  • Joined: 01-October 04

Posted 10 November 2004 - 08:53 AM

OK .. i have tried to install my Unattended XP using the line for cd rom and the setup is displaying me every time that the "asms" file is missing ...
I repeat that I didn`t change anything except the cd rom line in RunOneEx.cmd ...

Quote

Try an alternative script of setting %CDROM%.

FOR %%d 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 %%d\CD.txt SET CDROM=%%d

BTW, you don't have to go through the whole unattended installation process in order to test RunOnceEx. Just run RunOnceEx.cmd on your virtual machine and reboot.

Anyone have any idea how to solve this problem ..
Setup was running OK untill i did that ...
What did I do wrong ???

Attached File(s)

  • Attached File  error.JPG (22.91K)
    Number of downloads: 5


#7 User is offline   JPamplin 

  • format c: /u - It is your desssssstiny.
  • PipPip
  • Group: Members
  • Posts: 143
  • Joined: 06-January 04

Posted 10 November 2004 - 03:12 PM

Hmm. OK, I'm nit-picking here, but wouldn't a better way to write
FOR %%d 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 %%d\CD.txt SET CDROM=%%d

be something like this, which moves the colon into the IF EXIST...
FOR %%d 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 %%d:\CD.txt SET CDROM=%%d:


I dunno if that would work, but I always try to write really tight code.

Just my 2 cents,

JP

#8 User is offline   SiMoNsAyS 

  • C'mon you apes! You wanna live forever!?
  • Group: Patrons
  • Posts: 3,455
  • Joined: 17-May 04

Posted 10 November 2004 - 03:19 PM

asms error is common, you have used nlite i'm sure. just rebuilt your cd and everything will be ok

#9 User is offline   mazin 

  • MSFN Addict
  • Group: Supreme Sponsor
  • Posts: 1,952
  • Joined: 12-January 04

Posted 10 November 2004 - 06:09 PM

Issues to be fixed:

1 == Adobe Acrobat Reader 6.01 string is wrong.

2 == These keys:
REG ADD %KEY%\050 /VE /D "IrfanView 3.91 with Plugins" /f
REG ADD %KEY%\050 /V 1 /D "%CDROM%\Software\iview391\iview391.exe /silent /desktop=0 /group=1 /allusers=0 /assoc=1 /f
REG ADD %KEY%\050 /V 2 /D "%CDROM%\Software\iview391\IrfanView-all_plugins.exe /silent" /f

should be:

Quote

REG ADD %KEY%\055 /VE /D "IrfanView 3.91 with Plugins" /f
REG ADD %KEY%\055 /V 1 /D "%CDROM%\Software\iview391\iview391.exe /silent /desktop=0 /group=1 /allusers=0 /assoc=1" /f
REG ADD %KEY%\055 /V 2 /D "%CDROM%\Software\iview391\IrfanView-all_plugins.exe /silent" /f

3 == Also, Winamp string has to be fixed.

4 == This line:

REG DELETE=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v WinampAgent /f

should be:

REG DELETE HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v WinampAgent /f

5 == This key:

REG ADD %KEY%\045 /V 1 /D "%CDROM%\Software\NetFramework\netfx.msi" /f

Should be:

REG ADD %KEY%\045 /V 1 /D "%CDROM%\Software\NetFramework\netfx.msi /qb" /f

Also, it's said many times on several threads that NET Framework can't be installed from a CD if the MSI is used. SFX it!

6 == Is this a cracked copy of WinRAR?

REG ADD %KEY%\030 /V 1 /D "%CDROM%\Software\WinRar 3.40\WinRAR.v3.40.B1_Cracked.exe /s /W" /f

It, also, needs fixing because of spacing in its path!

#10 User is offline   playahater 

  • Newbie
  • Group: Members
  • Posts: 15
  • Joined: 01-October 04

Posted 11 November 2004 - 09:40 AM

Wooowww ... how many mistakes ...
Ok .. i will fix all of them ...
And, concerning the error .. no i dind`t use nlite .. as a matter of fact, i didn`t use any of apps for making the UI ...
I`ve used the winnt.sif, command.txt and runonceex.cmd ... nothing more ...
I`ll try to fix the runonceex.cmd ... to put
FOR %%d 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 %%d:\CD.txt SET CDROM=%%d:


I`ll fix all of these mistakes and i`ll post the result ...

BIG thanx to all of YOU ... :thumbup

P.S. -

Quote

6 == Is this a cracked copy of WinRAR?

REG ADD %KEY%\030 /V 1 /D "%CDROM%\Software\WinRar 3.40\WinRAR.v3.40.B1_Cracked.exe /s /W" /f


Hmmmmm ... :whistle:

:hello:

#11 User is offline   playahater 

  • Newbie
  • Group: Members
  • Posts: 15
  • Joined: 01-October 04

Posted 14 November 2004 - 01:32 PM

Not done ... I still get the above mentioned error ...
I have tried burninng my cd with lower speed, cause i have seen here in forums that that might be the solution, but I still get an error messages.
I have fixed all errors from runoneex.cmd put it where it belongs and burn the cd with the lowest possible speed and ... nothing .. error again ...
I don`t understand .. i didn`t, as far as I know , touch anything else except the cmd file since the last half succesful install ... ( half succesful cause apps would have not installed )
I even try to locate the asms dir on the cd during the setup and nothing .. it just won`t recognize it ...
Anyone has an idea ?? ...
General modifications are: Integrated SATA Drivers, changed uxtheme.dl_, added a few apps and registry and that`s it ...
I dind`n use any of utilities such as nlite, ktool etc. ....

Pleeeeeeeeeaseeeeee help :( ... i don`t know what to do .. i have fuc*e* up my xp and need format C a.s.a.p. and only xp installation i have is this Unattended which btw doesn`t work ...

:hello:

#12 User is offline   Astalavista 

  • MSFN loyalist
  • PipPipPipPipPipPipPipPipPip
  • Group: Banned
  • Posts: 3,338
  • Joined: 02-December 03

Posted 17 November 2004 - 08:18 AM

humm... sounds like one of your files or some of them has become corrupted.

happened to me once before.

just get a Fresh Windows XP Pro or Corp.

and start from SCRATCH.... another word of advice.. invest in a CDRW media

good luck

p.s. u are not allowed to talk about pirated or cracking or any of that stuff. ;)

#13 User is offline   Vadikan 

  • MSFT MVP Windows Expert: Consumers
  • PipPipPip
  • Group: Members
  • Posts: 349
  • Joined: 22-February 04
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 17 November 2004 - 01:03 PM

JPamplin, on Nov 10 2004, 03:12 PM, said:

Hmm.  OK, I'm nit-picking here, but wouldn't a better way to write
FOR %%d 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 %%d\CD.txt SET CDROM=%%d

be something like this, which moves the colon into the IF EXIST...
FOR %%d 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 %%d:\CD.txt SET CDROM=%%d:


I dunno if that would work, but I always try to write really tight code.

Just my 2 cents,

JP

I don't see why it shouldn't work :) Thanks for the tip.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy