Jump to content


Recommended Posts

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


Just wondering, could someone have any knowledge about how to disable the first-run dialog of CMTrace? The one which asks do you want to use cmtrace as default program for .log files etc? Any switches for cmtrace or registry patch?

Share this post


Link to post
Share on other sites

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...

Did it work? I'm trying to do the xcopy thingy within an application and get error 0x1(access deninde). :(

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Any more hints to this?

I cant get it to work..

 

I made two batch files, one for installation and one for uninstall.

 

I get an error message regarding access denied i think?

 

Appdiscovery.log

[Method EnforceApp failed with error 80070005]

 

Googling that led me to similar problems where access was a problem. I need administrative rights to copy files to the system32 directory, how do you guys get past this?

Share this post


Link to post
Share on other sites

By default, running an installation with administrative rights, via ConfigMgr, runs with local SYSTEM rights. That should be enough to copy a file to system32...

Hello, thanks for answering.

 

I did some reading last night and also came across that information. Im not sure what is going on as i have several other problems regarding applications installing in a deployment/via application catalog.

I think i need to collect my thoughts, do some troubleshooting and maybe create a separate thread regarding these issues.

 

I ran my batch files (the install and the uninstall) on a clean VM and they work as they should.

Share this post


Link to post
Share on other sites

I am also looking for a way to deploy to various win 7 x64 machines. i am getting Did not detect deployment type. I did select script for deployment type and copied above commands for installation - yet unable to get the application installed.

 

Can you share the batch files for reference mr NEM.....

 

Edit - Found a way to install CMTrace to all Win 7 workstation - This is what, I did

 

1. Downloaded and Installed EMCO MSI Package Builder Enterprise 4.5.5.7328

2. Created MSI package from CMTrace.exe

3. Created new applilcation as Windows Installer (MSI)

4. Deployed to Win 7 Collection

5. Tested - Worked out well

 

If any one need a copy of CMTrace MSI let me know - I will upload to a file sharing site and share the link here.

Share this post


Link to post
Share on other sites

I am also looking for a way to deploy to various win 7 x64 machines. i am getting Did not detect deployment type. I did select script for deployment type and copied above commands for installation - yet unable to get the application installed.

 

Can you share the batch files for reference mr NEM.....

 

Edit - Found a way to install CMTrace to all Win 7 workstation - This is what, I did

 

1. Downloaded and Installed EMCO MSI Package Builder Enterprise 4.5.5.7328

2. Created MSI package from CMTrace.exe

3. Created new applilcation as Windows Installer (MSI)

4. Deployed to Win 7 Collection

5. Tested - Worked out well

 

If any one need a copy of CMTrace MSI let me know - I will upload to a file sharing site and share the link here.

Could you post the MSI or email me?

It would save time in putting this together.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

FYI, in CMCB CMtrace is now installed as part of the client install.

But I know you example it can use used with any application like it. 

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
Reply to this topic...

×   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...