TheLug

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

10 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by JLogan3o13

√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
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"


 

Share this post


Link to post
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.

Share this post


Link to post
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.
 

 

Share this post


Link to post
Share on other sites

In the deployment settings, you have all the normal exit codes specified?

 

Return.png


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

14 minutes ago, JLogan3o13 said:

 

Yup all there for the application.

Edited by TheLug

Share this post


Link to post
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

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Any other advice?

Share this post


Link to post
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