Quantcast
Channel: Configuration Manager 2012 - Application Management forum
Viewing all articles
Browse latest Browse all 4762

Detection Method Using %UserProfile% in the Path

$
0
0

Hello,

I have written a simple bat file that copies 2 shortcuts to the desktop and I created an application for it so it can be run from the Application Catalog.  Everything works like it should and the shortcuts get copied to the users desktop but I can't get the detection method to work so even though the shortcuts are there the user is told the installation failed.

I assumed I could use %UserProfile%\Desktop and then the name of the shortcut as the file name in the Detection Method but that never detects the shortcut.

If I use the full path of C:\User\username\Desktop and the same file name it does detect it and says the installation completed successfully.

Is it possible to use system variables such as %UserProfile% as part of the path in the detection Methods?

Thanks,

Dustin


Viewing all articles
Browse latest Browse all 4762

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>