Jump to content

Why are my file copying techniques failing?


Recommended Posts

Posted

Hey all, My problem is routine but i am clueless as to what the problem is.

My cmdlines.txt file looks like this...

[COMMANDS]

"regedit /s theme.reg"

"regedit /s HKCU.reg"

"rundll32 advpack.dll,LaunchINFSection nLite.inf,nLiteReg"

Runonceex.cmd

Decomp.cmd

IPTV.cmd

UserAccounts.cmd

My IPTV.cmd file looks like this...

SET IPTV=%systemdrive%\Install\IPTV

@Call %IPTV%\RunMe.bat

exit

My RunMe.bat file looks like this...

@echo=off

SET Cisco=%systemdrive%\install\iptv

msiexec /i "%Cisco%\iptv viewer.msi" /qb!-

regedit /s %Cisco%\iptv.reg

The problem is that the program is not installing at the T-12 point of the windows installation. It looks like it is (or should i say the install begins) but after i have access to the desktop a quick check reveals no installation of the program. If i manually execute the Runme.bat file the program installs just fine. The reason I wish to install the program at T-12 is so that all subsequently created users on the system will have access to the program. To install the program at a later time of the Windows Install (like at the First Logon\GUIRunOnce stage) will only allow the installing user account access to the program.

Any help would be appreciated. Thanks.


Posted

The whole thing looks overly complicated to me... I don't understand the purpose of the IPTV.cmd. All it does is set an environment variable and then run the RunMe.bat, right? So why don't you run the RunMe.bat straight from Cmdlines.txt? In fact, why don't you run the "iptv viewer.msi" installation straight from Cmdlines.txt?

Anyway, this MSI may just not install correctly at the T-12 stage... I'd move the installation to RunOnceEx if I were you. As long as the installation is performed under an Administrator account, the application will be available to all users. If needed, add "ALLUSERS=2" to the installation command line.

Posted

Thanks for the tip CTRL-X. I didn't think a *.msi file could be parsed and run from cmdlines.txt. I'm still learning this stuff so please bear with me if i am making things a little complicated on myself. Also, is the "allusers=2" switch an acceptable switch for .msi based installs? I reviewed the available switches for the installer program and didn't see your recommendation among them. Is the "allusers=2" switch undocumented?

msiexec switches and parameters

Thanks again for your help and comments.

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