Jump to content

hotte

Member
  • Posts

    6
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Germany

About hotte

hotte's Achievements

0

Reputation

  1. Hi, While using the command CTRL-X mentioned I came across a strange thing: for "skip=1 tokens=*" %O in ('ver | sed -e "s/ \[.*\]//"') do echo %O leads to an "| was unexpected at this time" message. Isn't it possible to use pipes this way? regards, Sascha
  2. CTRL-X, very nice one, exactly what I was looking for! That saves even the transmission of a sed.exe to some clients! Thanks a lot! tot ziens! Sascha
  3. Hi there, to check whether a particular software release is installed or not I use reg query to query the apropriate registry string: reg query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{98EC8E7A-161A-455B-8B31-1E88C1CDFA6B} /v DisplayVersion|find "Display"|c:\sed.exe -e "s/.*REG_SZ//g" | C:\sed.exe -e "s/^\t//" This returns exactly the string I am looking for. Now I want to pipe the output into a variable to use it in a 'if' command but if I use set VERSION=reg query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{98EC8E7A-161A-455B-8B31-1E88C1CDFA6B} /v DisplayVersion|find "Display"|c:\sed.exe -e "s/.*REG_SZ//g" | C:\sed.exe -e "s/^\t//" and query the content of %VERSION% with echo, I receive the whole command but not the result. What am I missing here? Must the command be in some special brackets or quotes? regards, Sascha
  4. Hi, I created a registry file and noticed that some of the keys I want to delete might be used by different apps. Is there a way to mark (like rem, ; , #??) those entries as inactive so they won't get executed when I run load the file into the registry? regards, Sascha
  5. Hi, I'm facing the problem to deinstall a particular application from various systems. Involved operating systems include NT4, Windows 2000, Windows XP and 2003 Server. NT4 systems will be upgraded in the future but for now I have to deal with them. Goal is to deinstall different versions of that software in some kind of unattended mode. Of course I could create a setup.iss file to run the deinstallation in silent mode but there is a mix of MSI and older Installshield packages (guess version 7). As far as possible, everything should be done with a script and without bigger data transfer to the clients (limited amount of bandwith). What I intend to do is to run a command like for %%a in (*.dll) do regsvr32 /u /s %%a cd.. rmdir %programfiles%\progdir /S /Q This works well so far, now the tricky point. There are entries in HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall which reflect the installed programs. So, I may run my few commands, unregister all necessary files and delete them but a user is still facing the "installed program" if he/she looks into settings\control panel\software. For Windows XP and Windows 2003 Server I found 'reg delete' to delete the necessary entry from the registry. But this command does not exist for NT4 and Windows 2000. So here are my questions: Has anyone an idea which might help to delete the particular entry from the registry from within a batch file? Are there any possibilities to deinstall older Installshield packages in some kind of silent mode without having the user click 'ok' to deinstall? regards, Sascha
×
×
  • Create New...