I have an exe file, runs fine manually but not through SCCM...why?
I have a .exe file that I can run fine manually, but when I put the exe in the command line of my package, then push it down with SCCM, the advertisement popps up in the system tray, counts down but then never runs. The eventvwr says program started. SCCM report shows status running for the program. Whey would it just sit there and do nothing while being pushed through SCCM, but work fine when ran manually? Please help, thank you.
March 10th, 2010 6:18pm

What if any switches did you use in the command line? Did you select to allow users to interact with the program? Did you run it hidden?John Marcum | http://www.TrueSec.com/en/Training.htm | http://myitforum.com/cs2/blogs/jmarcum
Free Windows Admin Tool Kit Click here and download it now
March 10th, 2010 6:30pm

May there is problem in command line .May be it is unable to find the exe in working directory.Please share execmgr.logcheers!
March 10th, 2010 6:31pm

I ran it from the DP
Free Windows Admin Tool Kit Click here and download it now
March 10th, 2010 6:38pm

Did not run hidden. Did allow user to interact. And no switches were used. I just put in the exe file
March 10th, 2010 6:38pm

Says error return code 1, but don't see what it really errored on.
Free Windows Admin Tool Kit Click here and download it now
March 10th, 2010 6:39pm

I thought this might be helpful...the exe that I am running was created off of a .wbt file. The data below is what the .wbt contained.;*********************************************************************;* WB_PowerPlant V10 Workstation Deployment;* ;* This program checks C:\Program Files to see if PowerPlant is loaded;* 1) It adds a shortcut to the Start / Programs / Finance folder;* 2) It loads PP if it is not present;* 3) It updates the code if it is not current ;* 4) Install BBQCom if it is not present.;*;********************************************************************** ;; BBQCom Install ************** 4; ;bbqdir="C:\Program Files\Integrys Group\BBQCom";If !DirExist(bbqdir) ; Run("\\Integrys\data\APPS\PS\POE\BBQCom\Setup.exe","/quiet") ;if the directory does NOT exist, run setup to install.; ;RunShell("\\Integrys\data\APPS\PS\POE\BBQCom\setup.exe", "","", @hidden, @nowait) ;if the directory does NOT exist, run setup to install. ; TimeDelay(19);Else ; Check for BBQ update; b=FileCompare("C:\Program Files\Integrys Group\BBQCom\BBQCOM.dll", "\\Integrys\data\APPS\PS\POE\BBQCom\BBQCOM.dll"); If b==0 ;BBQ files not modified;; else ;Copy updated files; Run("\\Integrys\data\APPS\PS\POE\BBQCom\Setup.exe","/quiet") ;Setup will update; TimeDelay(8); Endif;Endif ;; Add PP to Start / Programs Menu PROD ************* 1.a; ProgDir = strcat("c:\Documents and Settings\All Users\Start Menu\Programs\")FromDir = "\\Integrys\data\APPS\PowerPlanApps\bin10\CLIENT DEPLOY\"ToDir = strcat(ProgDir,"Finance\PowerPlant\");; Create Start -> Programs -> Finance -> PowerPlant folderDirChange(ProgDir)If !DirExist ("Finance") Then DirMake("Finance")EndIfDirChange("Finance")If !DirExist ("PowerPlant") Then DirMake("PowerPlant")EndIfDirChange("PowerPlant") ;;/ Copy PPDeployment FileIf !FileExist("PowerPlant10.*") Then FileCopy(strcat(FromDir,"PowerPlant10.lnk"),ToDir,@FALSE) EndIf ;; Check if this is the first load ************* 2;ppdir="C:\Program Files\PowerPlant10\bin"If !DirExist(ppdir) DirMake(ppdir) ;if the directory does NOT exist, create it, then copy all files. ; bmp = FileLocate("LIGHTBUL.BMP"); BoxesUp("200,200,800,800", @NORMAL);; BoxColor(1,"0,255,255",4) ; BoxDrawRect(1,"0,0,999,999",1) ;object which will use the color;; BoxCaption(1, "PowerPlant Installation") ; BoxBitmap(1, "0,0,1600,1600" , BMP,3); BoxTextColor (1,"255,255,255"); BoxDrawText(1, "0,310,1000,1000", "I am installing the PowerPlant Application Files%@crlf%%@crlf% Please be patient", @FALSE, 1) FileCopy ("\\Integrys\data\APPS\PowerPlanApps\bin10\*.*", "C:\Program Files\PowerPlant10\bin\", @FALSE); ; BoxDestroy(1) ; DirChange(ppdir) ;change to the bin directory so users can find the correct ini file; Run("C:\Program Files\PowerPlant10\bin\powerpla.exe", "") Else ;check for update ************ 3 a=FileCompare("C:\Program Files\PowerPlant10\bin\powerpla.exe", "T:\APPS\PowerPlanApps\bin10\powerpla.exe") If a==0 ;PP files not modified DirChange(ppdir) ;change to the bin directory so users can find the correct ini file; Run("C:\Program Files\PowerPlant10\bin\powerpla.exe", "") else ;Copy updated files; BoxesUp("200,200,700,700", @NORMAL) ; BoxColor(1,"0,255,255",2) ; 2 for green 5 for magenta 1 for red; BoxDrawRect(1,"0,0,999,999",1) ;object which will use the color;; BoxCaption(1, "PowerPlant Software Update"); BoxTextColor (1,"255,255,255"); BoxDrawText(1, "0,310,1000,1000", "There is a software update available for PowerPlant.%@crlf%%@crlf% Please be patient while I update your workstation.%@crlf%%@crlf%%@crlf% %@crlf% ", @FALSE, 1) FileCopy ("\\Integrys\data\APPS\PowerPlanApps\bin10\powerpla.exe", "C:\Program Files\PowerPlant10\bin\", @FALSE); FileCopy ("\\Integrys\data\APPS\PowerPlanApps\bin10\*.pbd", "C:\Program Files\PowerPlant10\bin\", @FALSE); FileCopy ("\\Integrys\data\APPS\PowerPlanApps\bin10\*.ini", "C:\Program Files\PowerPlant10\bin\", @FALSE); FileCopy ("\\Integrys\data\APPS\PowerPlanApps\bin10\*.dll", "C:\Program Files\PowerPlant10\bin\", @FALSE); FileCopy ("\\Integrys\data\APPS\PowerPlanApps\bin10\*.ocx", "C:\Program Files\PowerPlant10\bin\", @FALSE); FileCopy ("\\Integrys\data\APPS\PowerPlanApps\bin10\PPapprlnk.*", "C:\Program Files\PowerPlant10\bin\", @FALSE); FileCopy ("\\Integrys\data\APPS\PowerPlanApps\bin10\pbwsclient110.pbx", "C:\Program Files\PowerPlant10\bin\", @FALSE); ; BoxDestroy(1) DirChange(ppdir) ;change to the bin directory so users can find the correct ini file; Run("C:\Program Files\PowerPlant10\bin\powerpla.exe", "") endif endif ; Considerations ; A) provide alternative ini files for various users (testers, powerusers, etc); B) alternate WinBatch for IES; C) MERC 7 MGU Citrix implications; D) Are there 2 WinBatches (PROD & TEST) Maybe PROD goes to start menu and TEST is on desktop? Is there anything in here that shouldn't be or maybe changed?
March 10th, 2010 8:08pm

I see the answer in your script. ConfigMgr using the Local System account to install applications. Local System account DOES NOT have access to network shares. So this means that your Copy and executing the setup from a remote share will fail. Why not distribute the source files with the package? Why remotely execute the setup? http://www.enhansoft.com/
Free Windows Admin Tool Kit Click here and download it now
March 10th, 2010 10:31pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics