Author: dreimer
Date: Tue Feb  9 13:30:49 2010
New Revision: 45528

URL: http://svn.reactos.org/svn/reactos?rev=45528&view=rev
Log:
Evil hack for Computers where NSIS fails to write the right Execution Settings 
for PS. Now it shows a Message Box while installing, telling you to use the 
generated REG File with Admin rights. Tested on such a PC and confirmed 
working. Time to switch to a better Install System... NSIS and UAC is fun

Added:
    trunk/tools/RosBE/RosBE-Windows/Powershell/RosBE PS - PostInstall.reg   
(with props)
Modified:
    trunk/tools/RosBE/RosBE-Windows/RosBE.nsi

Added: trunk/tools/RosBE/RosBE-Windows/Powershell/RosBE PS - PostInstall.reg
URL: 
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Powershell/RosBE%20PS%20-%20PostInstall.reg?rev=45528&view=auto
==============================================================================
Binary file - no diff available.

Propchange: trunk/tools/RosBE/RosBE-Windows/Powershell/RosBE PS - 
PostInstall.reg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Modified: trunk/tools/RosBE/RosBE-Windows/RosBE.nsi
URL: 
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/RosBE.nsi?rev=45528&r1=45527&r2=45528&view=diff
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/RosBE.nsi [iso-8859-1] (original)
+++ trunk/tools/RosBE/RosBE-Windows/RosBE.nsi [iso-8859-1] Tue Feb  9 13:30:49 
2010
@@ -290,6 +290,11 @@
     File /r Components\Powershell\update.ps1
     WriteRegStr HKLM 
"SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell" 
"ExecutionPolicy" "RemoteSigned"
     WriteRegStr HKLM 
"SOFTWARE\Wow6432Node\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell" 
"ExecutionPolicy" "RemoteSigned"
+    SetOutPath "$DESKTOP"
+    SetOverwrite try
+    File /r "Components\Powershell\RosBE PS - PostInstall.reg"
+    MessageBox MB_ICONINFORMATION|MB_OK \
+               "A REG-File was generated on your desktop. Please use it with 
Admin Rights to set Powershell's execution rights correctly if your RosBE 
Powershell Version fails to run after install. Otherwise, just delete it."
 SectionEnd
 
 Section -StartMenuShortcuts SEC12


Reply via email to