Thanks Daniel,

I believe it does also as well it requires an .xml file that has to be copied 
(all done by the installer)

I will test out psexec and see if it does work.

Kevin


From: [email protected] [mailto:[email protected]] On 
Behalf Of Daniel Ratliff
Sent: Tuesday, July 29, 2014 1:17 PM
To: [email protected]
Subject: [mssms] RE: Reference ccmcache folder during deployment

To emulate running as ConfigMgr, use psexec with the -s switch to run as SYSTEM.

It sounds like the MSI has something hardcoded inside it that requires the full 
path, I know with batch you can just use %~dp0 to reference the current 
directory.

msiexec /i "%~dp0application.msi" /q

I know it's possible with PowerShell too, I just don't know it off hand.

Daniel Ratliff

From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]] On Behalf Of Kevin Johnston
Sent: Tuesday, July 29, 2014 12:57 PM
To: '[email protected]'
Subject: [mssms] Reference ccmcache folder during deployment

I was not sure how to title this and I am not sure if this is possible but I 
have an MSI file that needs to specifically reference the folder the MSI is 
located in in order to work.

Example: msiexec /i <MSI_FOLDER_PATH>/application.msi 
SETUPEXEDIR=<MSI_FOLDER_PATH>

I am not sure how in SCCM I can make it so when it does copy the files to the 
ccmcache folder that it runs while referencing the folder it is in.

As it stands running msiexec /i "application.msi" /q it fails

It also requires admin rights, so I figured this should not be an issue running 
as SYSTEM, but that is not the case, at least not until I figure out how to 
pass this command to see if it will install at all.

If I open a command prompt with admin rights and run the full command with the 
ccmcache folder it works.

Any ideas?

SCCM 2012 R2
Windows 7 x64 systems


Thanks,

Kevin Johnston



The information transmitted is intended only for the person or entity to which 
it is addressed
and may contain CONFIDENTIAL material. If you receive this material/information 
in error,
please contact the sender and delete or destroy the material/information.




Reply via email to