Francesco Posted May 20, 2012 Posted May 20, 2012 (edited) As title says. In case of the 2nd choice WPI will always launch with/after explorer. Edited May 31, 2012 by Francesco
Kelsenellenelvian Posted May 20, 2012 Posted May 20, 2012 If we can get WPI to disable\re-enable uac during install that would be super.BTW Turtles are awesome!
chymax3m Posted August 6, 2012 Posted August 6, 2012 (edited) Hi, found an interesting reg file which turns off the UAC, may be it will be useful for You:Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]"EnableLUA"=dword:00000000Using RegShot i traced tha to undo this change it is necessary to use this:Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]"EnableLUA"=dword:00000001 But there is one disadvantage: to make this tweak work it is necessary to reboot Edited August 6, 2012 by chymax3m
Francesco Posted August 6, 2012 Author Posted August 6, 2012 Hi, found an interesting reg file which turns off the UAC, may be it will be useful for You:Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]"EnableLUA"=dword:00000000Using RegShot i traced tha to undo this change it is necessary to use this:Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]"EnableLUA"=dword:00000001 But there is one disadvantage: to make this tweak work it is necessary to rebootI already figured out how to disable UAC and how to set a task on reboot but until people vote I'm not writing anything since both workarounds are extremely annoying.
chymax3m Posted August 6, 2012 Posted August 6, 2012 OK then. I think it would be better to make it optional.
ricktendo Posted August 6, 2012 Posted August 6, 2012 Will you guys add support for getosver=Win8?Why do you guys use XP/Vista/Win7, would it not be better to use 5.1/6.0/6.1/6.2 etc? (future proof)
Kelsenellenelvian Posted August 6, 2012 Posted August 6, 2012 I really don't want to support 8.As for the Winver it is mainly because we have always done it that way and it is better for the "Less technically" inclined...
ricktendo Posted August 7, 2012 Posted August 7, 2012 Would not take much to add Win8 support, since it pretty much runs same as it does on Win7Also if you use 6.1.x/6.2.x/etc. it would allot be better, because you could also add service pack specific install support. For instance the Microsoft Camera Codec Pack is only compatible with Vista sp2 and not meant for Windows 8, would be nice if we could add these conditions in WPIInstalled OR (WindowsBuild >= 6002) Windows Vista Service Pack 2 or higher is required to install the Microsoft Camera Codec Pack.NOT (VersionNT > 601) This version of the Microsoft Camera Codec Pack is not compatible with Windows 8 or Windows Server 2012. You can get the codec pack through Windows Update on Windows 8. The codec pack is not available for Windows Server 2012.
Kelsenellenelvian Posted August 7, 2012 Posted August 7, 2012 We already have a spver:function getSPver(){ position="wmi.js"; whatfunc="getSPver()"; if (szServicePackCache==NOT_FOUND) // this function is called often - get it once and cache the result { try { objWMIService=GetObject("winmgmts:\\\\" + "." + "\\root\\CIMV2"); colItems=objWMIService.ExecQuery("SELECT * FROM Win32_OperatingSystem", "WQL", wbemFlagReturnImmediately | wbemFlagForwardOnly); enumItems=new Enumerator(colItems); objItem=enumItems.item(); szServicePackCache=objItem.ServicePackMajorVersion; } catch(ex) { var sp=""; try { sp=WshShell.RegRead("HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion\\CSDVersion"); } catch(ex) { ; } if (sp != "") { szServicePackCache=sp.substr(sp.length-1,1); } } } return szServicePackCache;}As for the "5.1/6.0/6.1/6.2" IF You and francesco can just add it to the existing code fine. I am not going to tell the thousands and thousands out there that they have to change all of their osver to the 5.1/6.0/6.1/6.2. Only 5% or so of them will listen.
ricktendo Posted August 7, 2012 Posted August 7, 2012 (edited) Not change, if you can support both options would be niceThis MSI LaunchCondition:Installed OR (WindowsBuild >= 6002) Windows Vista Service Pack 2 or higher is required to install the Microsoft Camera Codec Pack.NOT (VersionNT > 601) This version of the Microsoft Camera Codec Pack is not compatible with Windows 8 or Windows Server 2012. You can get the codec pack through Windows Update on Windows 8. The codec pack is not available for Windows Server 2012.In WPI could look like:getOSver2()>="6.0.6002"&&getOSver2()<="6.1"It would make WPI "future proof". You wont have to add a Win9/10/11 when/if another operating system comes out it will simply work, one would just have to increase the decimal point Edited August 7, 2012 by ricktendo64
Francesco Posted August 7, 2012 Author Posted August 7, 2012 Not change, if you can support both options would be niceThis MSI LaunchCondition:Installed OR (WindowsBuild >= 6002) Windows Vista Service Pack 2 or higher is required to install the Microsoft Camera Codec Pack.NOT (VersionNT > 601) This version of the Microsoft Camera Codec Pack is not compatible with Windows 8 or Windows Server 2012. You can get the codec pack through Windows Update on Windows 8. The codec pack is not available for Windows Server 2012.In WPI could look like:getOSver2()>="6.0.6002"&&getOSver2()<"6.1"It would make WPI "future proof". You wont have to add a Win9/10/11 when/if another operating system comes out it will simply work, one would just have to increase the decimal pointYou can already read the windows version number from the registry (HKLM\Software\Microsoft\Windows NT\CurrentVersion\CurrentVersion) also you can't compare versions as strings there's a function for that.
ricktendo Posted August 7, 2012 Posted August 7, 2012 (edited) That's the workaround I been usingEdit: (Vista sp2 to Win7 ENU condition)RegKeyValue("HKLM\Software\Microsoft\Windows NT\CurrentVersion\CurrentVersion")=="6.0"&&RegKeyValue("HKLM\Software\Microsoft\Windows NT\CurrentVersion\CurrentBuild")>="6002"&&getOSlang()=="ENU"||RegKeyValue("HKLM\Software\Microsoft\Windows NT\CurrentVersion\CurrentVersion")=="6.1"&&getOSlang()=="ENU" Edited August 8, 2012 by ricktendo64
Kelsenellenelvian Posted August 8, 2012 Posted August 8, 2012 Rick & Francesco:OK I will add support for 8 AND version #'s! BUT I need you guys to help add the code in so we can keep backwards compatability with the current getosver...Rick I need the current style getosver info for win8.
ricktendo Posted August 8, 2012 Posted August 8, 2012 6.2.9200 is RTM, I think 6.2.9201 will be SP1, etcIs that what you meant?
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