Page 4 of 5

Re: Build an OFFICIAL installer

Posted: 18 May 2011, 11:15
by fanthom
@Blaze
could you provide updated "win_start_here.hta" + TweakUAC.exe for testing, please.

Re: Build an OFFICIAL installer

Posted: 18 May 2011, 13:05
by Blaze

Re: Build an OFFICIAL installer

Posted: 20 May 2011, 05:53
by Ahau
thanks, Blaze!

I don't have a vista or 7 install, so I can't test it :(

But, for documentation purposes, can you please tell me if I have the steps for using it correct, and I'm not missing anything?

This is overly detailed, but I want to make sure I understand every mouse click:

1) run win_start_here.hta
2) click UAC button
3) select "Turn UAC off now" radio button
4) Click OK
5) Reboot
6) run win_start_here.hta
7) Click "Install Porteus" button, follow on-screen instructions
8) Click UAC button again
9) Select "Leave UAC on" or "Switch UAC to the quiet mode" radio button
10) Click OK
11) Reboot to test porteus USB. On next boot into windows, UAC will be activated again, in the desired mode.

Does Tweak UAC automatically reboot the machine when the settings are changed?

Thanks again!!

Re: Build an OFFICIAL installer

Posted: 20 May 2011, 08:16
by Blaze
Ahau, your steps is right.
Does Tweak UAC automatically reboot the machine when the settings are changed?
Then to you will be accessible the choice (2 buttons) Restart now and Restart later. The settings is save (change).

Re: Build an OFFICIAL installer

Posted: 20 May 2011, 09:03
by fanthom
current win_start_here.hta has "UAC" option. which doesn't tell much to fresh member. maybe we could rename it to: "Switch UAC" or "Tweak UAC"?
what do you think Ahau?

Re: Build an OFFICIAL installer

Posted: 20 May 2011, 12:20
by Ahau
I think we should have the button say "Tweak UAC", and I will reference the fact that we have included a third party app, called Tweak UAC to simplify their installation.

Posted after 14 minutes 23 seconds:
This is what I've written for the install guide. Let me know if this sounds clear and direct:

Code: Select all

4) If you are running the installer from Windows Vista or Windows 7 (users of Windows XP and earlier versions can skip this step), you must disable the User Account Control (UAC) program. To simplify this task, an application called Tweak UAC has been included with our installer.  In order to temporarily disable UAC, click on the "Tweak UAC" button on the win_start_here.hta menu, then select the "Turn UAC off now" radio button and click OK.  Then select the option to "Reboot now".  After your computer reboots into Windows, open the win_start_here.hta application again, and proceed with Step 5 below.  Once your installation is complete, you can run the win_start_here.hta application again, click on the "Tweak UAC" button, and select the "Leave UAC on" or "Switch UAC to the quiet mode" radio button, click OK and reboot your computer again in order to reactivate UAC.
Another option would be to split this text, by moving this last sentence to the end of Step 5, and just say, "if you are running Windows Vista or 7 and deactivated UAC, you can reactivate it now by...".

Thanks, guys!

Re: Build an OFFICIAL installer

Posted: 20 May 2011, 13:43
by Blaze
I think we should have the button say "Tweak UAC"
Open win_start_here.hta

Find

Code: Select all

<td align="center">Install<br /><br /><input style="width: 9em" id=runbutton  class="button" type="button" value="UAC" name="run_button" onClick="UAC">
Replace with

Code: Select all

<td align="center">Install<br /><br /><input style="width: 9em" id=runbutton  class="button" type="button" value="Tweak UAC" name="run_button" onClick="UAC">
This is what I've written for the install guide. Let me know if this sounds clear and direct...
All ok :)

Re: Build an OFFICIAL installer

Posted: 02 Jun 2011, 18:02
by Blaze
I updated my TweakUAC (ex. UAC by Blaze)
Image

Code: Select all

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

Opt("TrayIconHide", 1)

GUICreate("Deactivate/Activate UAC", 400, 370, -1, -1)
GUISetBkColor(0xC8C8C8)
$Button1 = GUICtrlCreateButton("Deactivate UAC", 70, 300, 105, 57)
$Button2 = GUICtrlCreateButton("Activate UAC", 230, 300, 105, 57)
GUICtrlCreateLabel("This program will temporarily disable Windows User Account Control (UAC).",  0, 10, 400, 50, 0x01)
GUICtrlCreateLabel("This is necessary in order to modify the Master Boot Record of your flash drive, and it will temporarily put your computer at risk.",  0, 60, 400, 50, 0x01)
GUICtrlCreateLabel("Note!",  0, 120, 400, 50, 0x01)
GUICtrlCreateLabel("If you are running the installer from Windows Vista or Windows 7, you must disable the UAC. To do this, click on the “Deactivate UAC” button, and UAC will be deactivated and your computer will reboot to apply these changes.",  0, 150, 400, 50, 0x01)
GUICtrlCreateLabel("When you are done installing Porteus on your flash drive, you can reactive UAC by running this program again, pressing the “Activate UAC” button, and your computer will reboot.",  0, 230, 400, 50, 0x01)
GUISetState(@SW_SHOW)

While 1
    $nMsg = GUIGetMsg()

    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            ExitLoop
        Case $Button1

			If $nMsg = $Button1 Then $iValue = 0
            RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System", "EnableLUA", "REG_DWORD", $iValue)
            RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System", "ConsentPromptBehaviorAdmin", "REG_DWORD", $iValue)
            RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System", "PromptOnSecureDesktop", "REG_DWORD", $iValue)
			$response = MsgBox(4, "Warning", 'You must restart your computer to apply these changes.' & @CR & '' & @CR & 'Before restarting, save any open files and close all programs.' & @CR & '' & @CR & 'Do you want to restart your computer now?')
			If $response = 6 then
				Shutdown(2)
				Exit
			EndIf
			If $response = 7 then
				Exit
			EndIf

        Case $Button2
			If $nMsg = $Button2 Then $iValue = 1
            RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System", "EnableLUA", "REG_DWORD", $iValue)
            RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System", "ConsentPromptBehaviorAdmin", "REG_DWORD", $iValue)
            RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System", "PromptOnSecureDesktop", "REG_DWORD", $iValue)
			$response = MsgBox(4, "Warning", 'You must restart your computer to apply these changes.' & @CR & '' & @CR & 'Before restarting, save any open files and close all programs.' & @CR & '' & @CR & 'Do you want to restart your computer now?')
			If $response = 6 then
				Shutdown(2)
				Exit
			EndIf
			If $response = 7 then
				Exit
			EndIf

    EndSwitch
WEnd
Download TweakUAC by Blaze.

Re: Build an OFFICIAL installer

Posted: 02 Jun 2011, 18:21
by agreimann
Nice!!! :D

This is cool. And, each word is correct! Really hope it makes it into the final release!

Re: Build an OFFICIAL installer

Posted: 02 Jun 2011, 18:29
by Blaze
agreimann, yeah :)
i don't like one thing in my TweakUAC - big size :(
P.S. sorry about my English. I'm noob of Image

Re: Build an OFFICIAL installer

Posted: 02 Jun 2011, 18:30
by roadie
This is necessary in order to modify the Master Boot Record of your flash drive, and it will temporarily put your computer at risk
It may be better to show a short explanation as to the risk.
If I were a newbie, I'd close it down on seeing that.

roadie

Re: Build an OFFICIAL installer

Posted: 02 Jun 2011, 18:39
by Blaze
roadie, probably - it's my hacck app Image
All suggestions are welcome :)

Re: Build an OFFICIAL installer

Posted: 02 Jun 2011, 18:42
by Ahau
Excellent point, roadie.

How about,
This is necessary in order to modify the Master Boot Record of your flash drive, and it will alter your security settings. You can restore your security settings as soon as the installation is complete.

Also -- Blaze, if this program has been written by you from scratch (not based on official TweakUAC or it's code), we should rename it to something other than TweakUAC, and change my install text to match.

Let's see what brokenman hears from the TweakUAC folks, too.

Nice work!

Re: Build an OFFICIAL installer

Posted: 03 Jun 2011, 00:02
by brokenman
Got the OK from the TweakUAC creator. You can use it.

Re: Build an OFFICIAL installer

Posted: 03 Jun 2011, 07:40
by Blaze