Jump to content


  • 0
mjsc

Sage Line 50 via .cmd using SCCM 2007

Question

Hello,

 

I am attempting to deploy Sage Line 50 v 7 via a .cmd file using SCCM 2007

 

Sage installs fine if I use the following command within the programs section of the package.

 

msiexec.exe /q ALLUSERS=2 /m MSIXPQVC /i "SageLine50.msi"

 

However, nothing happens on the receiving client if I set the package to run the program as a .cmd file.

 

Content of the .cmd file as below –

 

:: INSTALL SAGELINE50

 

msiexec.exe /q ALLUSERS=2 /m MSIXPQVC /i "SageLine50.msi"

 

::Copy file to the C: Drive

 

XCOPY /H /K /Y /C "%~dp0COMPANY.*" "C:\PROGRAM FILES (X86)\LINE50"

 

The content of the .cmd file looks pretty simple to me; nothing too complex there.

 

Any advice or ideas would be appreciated.

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

First ofall don't use the /m Switch. You want to install the program and not advertise the Installation. Also use ALLUSERS=1, you dont want to install the program in the user context if the system context doesn't work for any reason.

Add a pushd %~dp0 as first line to your batch, so msiexec can actually find the msi file. (last line popd). You also might want to return an exit code of the Installation by your Batch.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.