TheLug Posted June 29, 2016 Share Posted June 29, 2016 I have a program call resource scheduler that is a outlook plugin. I have the script created and running perfectly... If i right click run as admin it works on every machine i run it on. Now for the problem... When I put the script in a application or package in SCCM 2012 1511 and push it out, everything works except for the install line for the application, it just skips over it. If I run it as an application I get a message (attached in post) saying something about the exe. My money is on the way one of the command line switches are, it is using an (") as part of the switch. I would love it if someone had a solution of a way to wrap the line of code in something else or some other way of doing this. #NoTrayIcon ;Install Notification MsgBox (48,"Resource Scheduler Outlook Client","OUTLOOK WILL CLOSE, DO NOT RELAUNCH UNTIL FINISHED",10) ;Close Outlook ProcessClose ("OUTLOOK.exe") ;Uninstall Resource Scheduler Outlook Client RunWait ("MsiExec.exe /x {7B207D64-D14A-4C05-A369-A13E914A1D34} /qb-!") ;Version 1050 RunWait ("MsiExec.exe /x {081F2D54-90F1-4A7A-95DF-A27711BCD58B} /qb-!") ;Version 1100 ;Install Resource Scheduler Outlook Client RunWait (@ScriptDir & '\Source\RSO1100.exe /s /v"RSBASEURL=https://URL.resourcescheduler.net/RSOEFR /passive"') ;Completion Message MsgBox (48,"Resource Scheduler Outlook Client","Resource Scheduler Outlook Client - INSTALLATION COMPLETE!",10) Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted June 29, 2016 Moderators Share Posted June 29, 2016 (edited) First and foremost, what does the execmgr.log say as to the failure? Edit: I should specify, execmgr.log if you have it setup as a package, AppEnforce.log if it is an application. Edited June 29, 2016 by JLogan3o13 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
spudw2k Posted June 29, 2016 Share Posted June 29, 2016 Since you're wrapping the line with single-quotes, that should be all you need. If you run the command from a command prompt does it execute as expected? .\Source\RSO1100.exe /s /v"RSBASEURL=https://URL.resourcescheduler.net/RSOEFR /passive" c:\folderpath\Source\RSO1100.exe /s /v"RSBASEURL=https://URL.resourcescheduler.net/RSOEFR /passive" Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
TheLug Posted June 29, 2016 Author Share Posted June 29, 2016 It simply says it succeeded Script for Package:CM1002E2, Program: Resource Scheduler Plugin succeeded with exit code 0 execmgr 6/29/2016 3:21:34 PM 3300 (0x0CE4) All my other programs and application work perfectly. I can sub in a different exe and it works fine. Link to comment Share on other sites More sharing options...
TheLug Posted June 29, 2016 Author Share Posted June 29, 2016 2 minutes ago, spudw2k said: Since you're wrapping the line with single-quotes, that should be all you need. If you run the command from a command prompt does it execute as expected? .\Source\RSO1100.exe /s /v"RSBASEURL=https://URL.resourcescheduler.net/RSOEFR /passive" c:\folderpath\Source\RSO1100.exe /s /v"RSBASEURL=https://URL.resourcescheduler.net/RSOEFR /passive" Works perfectly. That's what I don't understand. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted June 29, 2016 Moderators Share Posted June 29, 2016 In the deployment settings, you have all the normal exit codes specified? "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
TheLug Posted June 29, 2016 Author Share Posted June 29, 2016 (edited) 14 minutes ago, JLogan3o13 said: Yup all there for the application. Edited June 29, 2016 by TheLug Link to comment Share on other sites More sharing options...
spudw2k Posted June 29, 2016 Share Posted June 29, 2016 Does the installer (RSO1100.exe) have a parameter to create a log file or can you redirect the command output to a log? c:\folderpath\Source\RSO1100.exe /s /v"RSBASEURL=https://URL.resourcescheduler.net/RSOEFR /passive" > log.txt Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
TheLug Posted June 29, 2016 Author Share Posted June 29, 2016 51 minutes ago, spudw2k said: Does the installer (RSO1100.exe) have a parameter to create a log file or can you redirect the command output to a log? c:\folderpath\Source\RSO1100.exe /s /v"RSBASEURL=https://URL.resourcescheduler.net/RSOEFR /passive" > log.txt I cannot not find any parameter that works to create a log. I read through the useless documentation but nothing in there either. Link to comment Share on other sites More sharing options...
TheLug Posted June 30, 2016 Author Share Posted June 30, 2016 Any other advice? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now