Windows 7 startup script .msi


hello all,

i having problems deploying startup script. goal of script users lotus notes local data (ie personal settings, views..) uninstall lotus notes 6.5 single user, install lotus notes 8.5.2 multi user. works on windows xp.

on windows 7, script copies data folder , edits registry fails on .msi install. remote registry , windows installer services both running. have tried different uac levels too. pointers great thank you.

 

========script========

if exist "%systemdrive%\notes6" goto end
if not exist "%programfiles%\lotus" goto end

regedit /s \\aq-ad\users\configuration_files\data\notes_upgrade\notesmulti.reg

xcopy "%programfiles%\lotus\notes\data" "%systemdrive%\notes6\data\" /y /q /e /h /i /c

(this fails)
msiexec /i "\\aq-ad\users\configuration_files\data\notes_upgrade\multi_setup\lotus notes 8.5.2.msi" transforms="\\aq-ad\users\configuration_files\data\notes_upgrade\multi_setup\lotus notes 8.5.2.mst" /qb

:end
exit 

hello all,

i having problems deploying startup script. goal of script users lotus notes local data (ie personal settings, views..) uninstall lotus notes 6.5 single user, install lotus notes 8.5.2 multi user. works on windows xp.

on windows 7, script copies data folder , edits registry fails on .msi install. remote registry , windows installer services both running. have tried different uac levels too. pointers great thank you.

 

========script========

if exist "%systemdrive%\notes6" goto end
if not exist "%programfiles%\lotus" goto end

regedit /s \\aq-ad\users\configuration_files\data\notes_upgrade\notesmulti.reg

xcopy "%programfiles%\lotus\notes\data" "%systemdrive%\notes6\data\" /y /q /e /h /i /c

(this fails)
msiexec /i "\\aq-ad\users\configuration_files\data\notes_upgrade\multi_setup\lotus notes 8.5.2.msi" transforms="\\aq-ad\users\configuration_files\data\notes_upgrade\multi_setup\lotus notes 8.5.2.mst" /qb

:end
exit 


might suggest adding drive to support uri network file shares in windows 7. script should run computer user.... if not, need grant temporary local administrative permission "domain users"

suggested method:

== script start ==

if exist "%systemdrive%\notes6" goto end
if not exist "%programfiles%\lotus" goto end

net localgroup administrators "%userdnsdomain%\domain users" add

net use x: \\aq-ad\users

set upgrade=configuration files\data\notes upgrade

set upgsetup=configuration files\data\notes upgrade\multi setup

regedit /s "x:\%upgrade%\notesmulti.reg"

msiexec /i "x:\%upgsetup%\lotus notes 8.5.2.msi" transforms="x:\%upgsetup%\lotus notes 8.5.2.mst" /qb

net use x: /delete

net localgroup administrators "%userdnsdomain%\domain users" /delete

shutdown -r -t 00

:end

exit

== script end ==

if not.. need set computer script , create script users... also.. see if can escelate privileges via mst file or use autoit embed privilege escelation script execute file , still capture users data. autoit easy off top of head non-lotus notes user power batch writter.

you use gpo application , registry entry deployment instead if youre using 2008 or 2008 r2 domain controllers.

can spot event id error shows in event viewer during msi failure?


steve kline
microsoft certified professional: server administrator
microsoft certified technology specialist: active directory, network infrastructure, application platform, windows 7
microsoft certified product specialist & network product specialist
red hat certified system administrator
microsoft® community contributor award 2011
posting "as is" without warranties , confers no rights



Windows Server  >  Group Policy



Comments

Popular posts from this blog

some help on Event 540

WMI Repository 4GB limit - Win 2003 Ent Question

Event ID 1302 (error 1307) DFS replication service encountered an error while writing to the debug log file