Jump to content


  • 0
narcoticmind

Deploying CMTrace as an Application

Question

Just tested this thing and I'm kind of thrilled.. so I wanted to deploy cmtrace as an CM12 application,

I did it with the quick-and-dirty method.

 

So, I created a new application, and for the deployment type I checked script and the actual install program was as follows

xcopy.exe ".\*.*" "%windir%\system32" /D /E /C /I /Q /H /R /Y /S

And the uninstall program was as follows

del.exe %windir%\system32\cmtrace.exe

 

 

Detection method was of course checking the presence of cmtrace in %windir%\system32.

The niceness about this is, that now I can simply run cmtrace on any computer in the network and

I was thinking that the new app-model is way better than the old package deployment, what do you guys think?

 

Has anyone else thought about deploying software like this? I know it would be better to handle it by doing

a script that installs the cmtrace to %programfiles% and so on...

Share this post


Link to post
Share on other sites

Recommended Posts

  • 0

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

Share this post


Link to post
Share on other sites

Join the conversation

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

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.