Skip to content

Deploy software with batch file

Featured Replies

  • Author

Have you change the path of the other batch files?

 

Can you post them again? What error do you get under your reports?

 

I consolidated the files in to two files.

 

The install file:

%~dp0Setup\NwSapSetup.exe /Silent /Package="SAP GUI 7.1"

%comspec% /c del "c:\documents and settings\all users\desktop\*saplo*.lnk"

%comspec% /c del "c:\documents and settings\all users\desktop\*saplg*.lnk"

%comspec% /c del "c:\documents and settings\all users\desktop\*sap lo*.lnk"

%comspec% /c del "C:\Documents and Settings\All Users\Start Menu\Programs\*saplo*.lnk"

%~dp0SAPShortcut.vbs

sapregsv mshtml.tlb /s

 

SAPShortcut.vbs

set WshShell = WScript.CreateObject("WScript.Shell")

set oShortCutLink = WshShell.CreateShortcut("c:\documents and settings\all users\desktop\" & "\SAP Logon.lnk")

oShortCutLink.TargetPath = "C:\Program Files\SAP\FrontEnd\SAPgui\saplogon.exe"

oShortCutLink.WindowStyle = 1

oShortCutLink.Hotkey = "CTRL+SHIFT+N"

oShortCutLink.Description = "SAP Logon"

oShortCutLink.Save

 

What reports do you mean?

On your SCCM console go to System Status > advertisment status > select your advertisement and expand it to the bottom level and on the right side of your console , right click select show all messages and a message status will appear.

 

Alternative go to http://<sccm>/smsreporting_XXX/ where XXX is your site code

 

Software Distribution - Advertisement Status > All system resource advertisements with status and open the report. you should find the computer there and the status

 

Also, since you are running from distribution point, i thing vbs is running that execution on the SCCM server.

 

Out of curiosity any shortcut have appeared on your sccm desktop? :P

  • Author

On your SCCM console go to System Status > advertisment status > select your advertisement and expand it to the bottom level and on the right side of your console , right click select show all messages and a message status will appear.

 

Alternative go to http://<sccm>/smsreporting_XXX/ where XXX is your site code

 

Software Distribution - Advertisement Status > All system resource advertisements with status and open the report. you should find the computer there and the status

 

Also, since you are running from distribution point, i thing vbs is running that execution on the SCCM server.

 

Out of curiosity any shortcut have appeared on your sccm desktop? :P

 

I don't know what changed but it looks to be working correctly now. The shortcuts are all right. I don't know if the last portion ran or not yet. I have to have someone show me what that actually fixes. Thanks for the help!

I don't know what changed but it looks to be working correctly now. The shortcuts are all right. I don't know if the last portion ran or not yet. I have to have someone show me what that actually fixes. Thanks for the help!

 

That is good to hear. Glad to help

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.