problem removing shorcut using script
Hi
i am packaging vodafone 3g mobile broadband for silent deployment, the deployment has gone fine apart from i cant stop it creating a desktop shortcut using their setup_vmb.exe /s /v/qn wrapper command
I have created a vb script and a bat file which both work locally but when i run it through sccm it fails or doesnt work, i can go into the sccm cache and it will work fine if i run it from command prompt as admin.
my script basically uses xcopy.exe "%dp0\removeicon.vbs" "c:\programdata\srft\vodafone3g\" /y /e /s /i
cscript.exe "c:\programdata\srft\vodafone3g\removeicon.vbs"
any ideas would be greatly appreciated as this is getting the better of me!
this is my latest attempt to copy it down locally and run it with also fails!
i have tried running it from the cache using script that doesnt work either
my vb script just sets the shortcut to delete
Answers (7)
seeing the /s /v/qn commandline parameter: are you sure there's not an MSI installer being used by the installation exe? (I seem to remember there being one from packaging this awhile ago)
If you could use that directly it would be easy to remove any shortcuts
EDIT: the entry in the software library here seems to confirm my suspicion.
Check the following location of the shortcut:
If location is C:\Users\Public\Desktop - should be able to delete via SCCM
If location is C:\Users\<UserName>\Desktop - try your script to run via ActiveSetup
Also, try to check the property Security tab of the shortcut. Then elevate privileged if needed before running the script to delete the shortcut.
the msi comes with 15 different predetermined mst.s
your right it does have an msi
but you can't use the msi directly as when you launch it you get the first screen with ID tags and not the installer which doesnt help.
it has a load of predetermined mst files which i cant use as i dont know what they do
so i have ran it silently and want to remove the desktop shortcut but cant remove it as above
i did try passing a createdshortcuts switch as part of the setup_vmb.exe /s /q/vn "createdshortcuts=0" but it still created the shortcut for the application
Comments:
-
I notice you pass a lowercase property on the commandline. This will not work since only uppercase (public) properties can be passed this way. - pjgeutjens 12 years ago
i have and it fails
i also tried a basica del command in a bat file by copying the bat file down then running it from inside there locally
everything fails
if you have anything youd like to me try i am all ears i really am stuck
ps i can run the file from where its been copied to and it will work
just through sccm it doesnt