From: admin@lists.myITforum.com [mailto:admin@lists.myITforum.com] On Behalf Of Troy Martin
Sent: Monday, January 04, 2010 6:46 PM
To: mssms@lists.myitforum.com
Subject: [mssms] RE: MSI PATCH property - resolving path to DP question

Put the command-line in a wrapper (e.g. batch/vbs/SMS Installer) and use %~dp0 in the wrapper.  Then, specify the wrapper command-line for the package program.

 

You are basically “hiding” the command-line from SMS…

 

Troy L. Martin | Senior Consultant | 1E |

Mobile: 678 898 6147 | US/Canada Toll Free: 1 866 592 4214

troy.martin@1e.com | www.1e.com

 

From: admin@lists.myITforum.com [mailto:admin@lists.myITforum.com] On Behalf Of Lai, Jerry
Sent: Monday, January 04, 2010 6:07 PM
To: 'mssms@lists.myITforum.com'
Subject: [mssms] MSI PATCH property - resolving path to DP question

I am trying to create a single command line to install the Microsoft Office 2007 Compatibility Pack with SP2 and deploy it via SMS 2003.

 

ex: msiexec /package O12Conv.msi PATCH=O12Convsp2-en-us.msp /norestart /log "C:\Logs\O12Conv_wSP2.log" ALLUSERS=2

 

I've read the MSDN article on the PATCH property and it states that I need to enter in the FULL path to the patch file, but I don't really want to hardcode the path to one specific server as this will cause traffic over the WAN link.  I've tried using the %~dp0 variable directly in the SMS program without success (it resolves the path if in a batch file).  I can't set it to download and run as this will be in the OSD (I've currently got it as two separate tasks in the State Restore phase of the OSD- 1 for the MSI and 1 for the Patch).  I know I can call a VBScript/Batch file, but I just wanted to know if anyone has come across this before and found a way to run the command line natively in the program?

 

Thanks,

Jerry

 

Jerry Lai
Test & Integration Analyst
Freehills

T +61 3 9288 1780
M +61 419 898 461
F +61 3 9288 1567
www.freehills.com

Please consider the environment before printing this email

 

 

 

 


FREEHILLS
This email is confidential. If you are not the intended recipient you must not disclose or use the information contained in it. If you have received this email in error please notify us immediately by return email and delete the document. Freehills is not responsible for any changes made to a document other than those made by Freehills or for the effect of the changes on the document's meaning. Freehills accepts no liability for any damage caused by this email or its attachments due to viruses interference interception corruption or unauthorised access.


 


==============
Missed an email? Check out the list archive:
http://myitforum.com/cs2/blogs/smslist/



DISCLAIMER: This is a PRIVATE AND CONFIDENTIAL message for the ordinary user of this email address. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind 1E to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose.


==============
Missed an email? Check out the list archive:
http://myitforum.com/cs2/blogs/smslist/

Published with BlogMailr



Trackbacks

No Trackbacks

Comments

No Comments