spachtler Posted February 10, 2006 Posted February 10, 2006 hello, i solved the problem to execute an exe with spaces in path by using this ' ' single quotes. but this dont work if i use variables. example: $dvdpre = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\CloneDVD2", "InstallLocation") this is D:\Elaborate Bytes\CloneDVD2 then i want to run: Run ($dvdpre & "\CloneDVD2-uninst.exe", $dvdpre) it dont work! hope you can help?
jaenster Posted February 10, 2006 Posted February 10, 2006 i can it ... are you sure of that last line ? ? it isn't this ? run($dvdpre &"\CloneDVD2-uninst.exe") -jaenster
Nuffilein805 Posted February 10, 2006 Posted February 10, 2006 i agree with jaenster (well once ) you don't need a workingdir here do you have admin-rights, so you are allowed to uninstall? my little chatmy little encryption toolmy little hidermy unsafe clickbot
jaenster Posted February 10, 2006 Posted February 10, 2006 (edited) some like that is the problem .. Edit : Run will work ..eh.. Always Edited February 10, 2006 by jaenster -jaenster
spachtler Posted February 10, 2006 Author Posted February 10, 2006 without the workingdir, it dont work too. but i solved it anyway, found another registryvalue with the complete uninstall string for dos. this works fine: $dvdun = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\CloneDVD2", "UninstallString") Run ($dvdun) $dvdun is: "D:\Elaborate Bytes\CloneDVD2\CloneDVD2-uninst.exe" /D="D:\Elaborate Bytes\CloneDVD2"
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now