trying to install wordviewer (etc.) when first logs in

K

Kris Pipeleers

Hi all,

I'm creating a unattended setup for Windows XP Pro. I've written an
unattended.txt and this installs perfectly. The next thing I want to do is
to install several products when the first user logs in. I'm doing this
with:

$OEM$\cmdlines.txt

[COMMANDS]
"RunOnceEx.cmd"
"useraccounts.cmd"


$OEM$\RunOnceEx.cmd

cmdow @ /HID
@echo off

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

REG ADD %KEY% /V TITLE /D "Installing Applications" /f
REG ADD %KEY% /V Flags /t REG_DWORD /D 32 /f

REG ADD "HKLM\Software\Microsoft\IE Setup\Setup" /v "RunOnceExLogFile" /d
"RunOnceExLog.txt" /f

REG ADD %KEY%\010 /VE /D "Virtual PC 2004 SP1" /f
REG ADD %KEY%\015 /V 1 /D "%systemdrive%\Install\VPC2004SP1\vpc2004sp1.msi
/qn" /f

REG ADD %KEY%\020 /VE /D "Adobe Reader 7.0" /f
REG ADD %KEY%\025 /V 1 /D "%systemdrive%\install\adbeRdr70\AdbeRdr70_enu.exe
/S /v/qn" /f

REG ADD %KEY%\030 /VE /D "PowerPoint Viewer 2003" /f
REG ADD %KEY%\035 /V 1 /D "%systemdrive%\WINDOWS\System32\msiexec.exe /quiet
/log c:\log1.txt /norestart /i %systemdrive%\Install\ppviewer\PPVIEWER.MSI"
/f

REG ADD %KEY%\040 /VE /D "Excel Viewer 2003" /f
REG ADD %KEY%\045 /V 1 /D "%systemdrive%\WINDOWS\System32\msiexec.exe /quiet
/log c:\log2.txt /norestart /i %systemdrive%\Install\xlviewer\XLVIEW.MSI" /f

REG ADD %KEY%\050 /VE /D "Word Viewer 2003" /f
REG ADD %KEY%\055 /V 1 /D "%systemdrive%\WINDOWS\System32\msiexec.exe /quiet
/log c:\log3.txt /norestart /i %systemdrive%\Install\wdviewer\WORDVIEW.MSI"
/f

REG ADD %KEY%\060 /VE /D "Antivirus" /f
REG ADD %KEY%\065 /V 1 /D "%systemdrive%\WINDOWS\System32\msiexec.exe /quiet
/log c:\log4.txt /i %systemdrive%\Install\Antivirus\eTrust_Antivirus.msi" /f




Virtual PC 2004 and Adobe Reader 7.0 install perfectly; Powerpoint, Excel,
Word and Antvirus never get installed. The MSI log files are empty.
If I than insert the registry settings (for the missing products) again and
I log off and on again and the products get installed.


How can I install everything the first time the user logs in?



Thanks for your help,
Kris Pipeleers
 
K

Kris Pipeleers

Found the solution: changed the order:
cmdow @ /HID
@echo off

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

REG ADD %KEY% /V TITLE /D "Installing Applications" /f
REG ADD %KEY% /V Flags /t REG_DWORD /D 32 /f

REG ADD "HKLM\Software\Microsoft\IE Setup\Setup" /v "RunOnceExLogFile" /d
"RunOnceExLog.txt" /f

REG ADD %KEY%\010 /VE /D "Virtual PC 2004 SP1" /f
REG ADD %KEY%\015 /V 1 /D "%systemdrive%\Install\VPC2004SP1\vpc2004sp1.msi
/qn" /f

REG ADD %KEY%\020 /VE /D "PowerPoint Viewer 2003" /f
REG ADD %KEY%\025 /V 1 /D "%systemdrive%\WINDOWS\System32\msiexec.exe /quiet
/log c:\log1.txt /norestart /i %systemdrive%\Install\ppviewer\PPVIEWER.MSI"
/f

REG ADD %KEY%\030 /VE /D "Excel Viewer 2003" /f
REG ADD %KEY%\035 /V 1 /D "%systemdrive%\WINDOWS\System32\msiexec.exe /quiet
/log c:\log2.txt /norestart /i %systemdrive%\Install\xlviewer\XLVIEW.MSI" /f

REG ADD %KEY%\040 /VE /D "Word Viewer 2003" /f
REG ADD %KEY%\045 /V 1 /D "%systemdrive%\WINDOWS\System32\msiexec.exe /quiet
/log c:\log3.txt /norestart /i %systemdrive%\Install\wdviewer\WORDVIEW.MSI"
/f

REG ADD %KEY%\050 /VE /D "Antivirus" /f
REG ADD %KEY%\055 /V 1 /D "%systemdrive%\WINDOWS\System32\msiexec.exe /quiet
/log c:\log4.txt /i %systemdrive%\Install\Antivirus\eTrust_Antivirus.msi" /f

REG ADD %KEY%\060 /VE /D "Adobe Reader 7.0" /f
REG ADD %KEY%\065 /V 1 /D "%systemdrive%\install\adbeRdr70\AdbeRdr70_enu.exe
/S /v/qn" /f



Kris
Kris Pipeleers said:
Hi all,

I'm creating a unattended setup for Windows XP Pro. I've written an
unattended.txt and this installs perfectly. The next thing I want to do is
to install several products when the first user logs in. I'm doing this
with:

$OEM$\cmdlines.txt

[COMMANDS]
"RunOnceEx.cmd"
"useraccounts.cmd"


$OEM$\RunOnceEx.cmd

cmdow @ /HID
@echo off

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

REG ADD %KEY% /V TITLE /D "Installing Applications" /f
REG ADD %KEY% /V Flags /t REG_DWORD /D 32 /f

REG ADD "HKLM\Software\Microsoft\IE Setup\Setup" /v "RunOnceExLogFile" /d
"RunOnceExLog.txt" /f

REG ADD %KEY%\010 /VE /D "Virtual PC 2004 SP1" /f
REG ADD %KEY%\015 /V 1 /D "%systemdrive%\Install\VPC2004SP1\vpc2004sp1.msi
/qn" /f

REG ADD %KEY%\020 /VE /D "Adobe Reader 7.0" /f
REG ADD %KEY%\025 /V 1 /D
"%systemdrive%\install\adbeRdr70\AdbeRdr70_enu.exe /S /v/qn" /f

REG ADD %KEY%\030 /VE /D "PowerPoint Viewer 2003" /f
REG ADD %KEY%\035 /V 1 /D "%systemdrive%\WINDOWS\System32\msiexec.exe
/quiet /log c:\log1.txt /norestart /i
%systemdrive%\Install\ppviewer\PPVIEWER.MSI" /f

REG ADD %KEY%\040 /VE /D "Excel Viewer 2003" /f
REG ADD %KEY%\045 /V 1 /D "%systemdrive%\WINDOWS\System32\msiexec.exe
/quiet /log c:\log2.txt /norestart /i
%systemdrive%\Install\xlviewer\XLVIEW.MSI" /f

REG ADD %KEY%\050 /VE /D "Word Viewer 2003" /f
REG ADD %KEY%\055 /V 1 /D "%systemdrive%\WINDOWS\System32\msiexec.exe
/quiet /log c:\log3.txt /norestart /i
%systemdrive%\Install\wdviewer\WORDVIEW.MSI" /f

REG ADD %KEY%\060 /VE /D "Antivirus" /f
REG ADD %KEY%\065 /V 1 /D "%systemdrive%\WINDOWS\System32\msiexec.exe
/quiet /log c:\log4.txt /i
%systemdrive%\Install\Antivirus\eTrust_Antivirus.msi" /f




Virtual PC 2004 and Adobe Reader 7.0 install perfectly; Powerpoint, Excel,
Word and Antvirus never get installed. The MSI log files are empty.
If I than insert the registry settings (for the missing products) again
and I log off and on again and the products get installed.


How can I install everything the first time the user logs in?



Thanks for your help,
Kris Pipeleers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top