Skip to content

Deploying CMTrace as an Application

Featured Replies

Hello, it's working fine for me but for uninstall I did not find del.exe, so for install I set :

 

xcopy.exe cmtrace.exe "%windir%\system32\" /y

 

and for uninstall :

 

cmd /c del "%windir%\system32\cmtrace.exe" /F /Q

I had to use that uninstall line as well.

  • 3 weeks later...
  • 4 years later...

Old post i ran into while looking at deploying CMTrace. I completed the deployment using PowerShell scripts, with the addition of copying a link to the Public Desktop.

 

CMTrace_Install.ps1

# Path to store the .ico and .exe

$AppPath = 'C:\Windows\System32'

# Path of the Public Desktop for shortcut

$AppShortcut = "C:\Users\Public\Desktop"

 

# Copy the .ico, .exe, and .lnk.

Copy-Item .\CMTrace.lnk -Destination $AppShortcut

Copy-Item .\CMTrace.ico -Destination $AppPath

Copy-Item .\CMTrace.exe -Destination $AppPath

 

CMTrace_UnInstall.ps1

# Path to store the .ico and .exe

$AppPath = 'C:\Windows\System32'

# Path of the Public Desktop shortcut

$AppShortcut = 'C:\Users\Public\Desktop'

 

# Remove the .ico, .exe, and .lnk

Remove-Item $AppShortcut\CMTrace.lnk

Remove-Item $AppPath\CMTrace.exe

Remove-Item $AppPath\CMTrace.ico

Deployment_Programs.png

Deployment_DetectionMethod.png

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.