Jump to content

Issue no one can resolve yet... run wait line being skipped


Recommended Posts

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)

 

Capture.PNG

Link to comment
Share on other sites

  • Moderators

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

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"


 

Link to comment
Share on other sites

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

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

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
Link to comment
Share on other sites

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...