Build an OFFICIAL installer

New features which should be implemented in Porteus; suggestions are welcome. All questions or problems with testing releases (alpha, beta, or rc) should go in their relevant thread here, rather than the Bug Reports section.
User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: Build an OFFICIAL installer

Post#46 by fanthom » 18 May 2011, 11:15

@Blaze
could you provide updated "win_start_here.hta" + TweakUAC.exe for testing, please.
Please add [Solved] to your thread title if the solution was found.

User avatar
Blaze
DEV Team
DEV Team
Posts: 3869
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

Re: Build an OFFICIAL installer

Post#47 by Blaze » 18 May 2011, 13:05

Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

User avatar
Ahau
King of Docs
King of Docs
Posts: 1331
Joined: 28 Dec 2010, 15:18
Distribution: LXDE & Xfce 32/64-bit
Location: USA

Re: Build an OFFICIAL installer

Post#48 by Ahau » 20 May 2011, 05:53

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!!
Please take a look at our online documentation, here. Suggestions are welcome!

User avatar
Blaze
DEV Team
DEV Team
Posts: 3869
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

Re: Build an OFFICIAL installer

Post#49 by Blaze » 20 May 2011, 08:16

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).
Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: Build an OFFICIAL installer

Post#50 by fanthom » 20 May 2011, 09:03

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?
Please add [Solved] to your thread title if the solution was found.

User avatar
Ahau
King of Docs
King of Docs
Posts: 1331
Joined: 28 Dec 2010, 15:18
Distribution: LXDE & Xfce 32/64-bit
Location: USA

Re: Build an OFFICIAL installer

Post#51 by Ahau » 20 May 2011, 12:20

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!
Please take a look at our online documentation, here. Suggestions are welcome!

User avatar
Blaze
DEV Team
DEV Team
Posts: 3869
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

Re: Build an OFFICIAL installer

Post#52 by Blaze » 20 May 2011, 13:43

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 :)
Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

User avatar
Blaze
DEV Team
DEV Team
Posts: 3869
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

Re: Build an OFFICIAL installer

Post#53 by Blaze » 02 Jun 2011, 18:02

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.
Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

User avatar
agreimann
Samurai
Samurai
Posts: 137
Joined: 19 Apr 2011, 21:09
Location: U.S.

Re: Build an OFFICIAL installer

Post#54 by agreimann » 02 Jun 2011, 18:21

Nice!!! :D

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

User avatar
Blaze
DEV Team
DEV Team
Posts: 3869
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

Re: Build an OFFICIAL installer

Post#55 by Blaze » 02 Jun 2011, 18:29

agreimann, yeah :)
i don't like one thing in my TweakUAC - big size :(
P.S. sorry about my English. I'm noob of Image
Last edited by Blaze on 02 Jun 2011, 18:32, edited 1 time in total.
Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

roadie
Full of knowledge
Full of knowledge
Posts: 400
Joined: 02 Jan 2011, 18:41
Distribution: Porteus 5.0-RC1
Location: In a hayfield

Re: Build an OFFICIAL installer

Post#56 by roadie » 02 Jun 2011, 18:30

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

User avatar
Blaze
DEV Team
DEV Team
Posts: 3869
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

Re: Build an OFFICIAL installer

Post#57 by Blaze » 02 Jun 2011, 18:39

roadie, probably - it's my hacck app Image
All suggestions are welcome :)
Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

User avatar
Ahau
King of Docs
King of Docs
Posts: 1331
Joined: 28 Dec 2010, 15:18
Distribution: LXDE & Xfce 32/64-bit
Location: USA

Re: Build an OFFICIAL installer

Post#58 by Ahau » 02 Jun 2011, 18:42

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!
Please take a look at our online documentation, here. Suggestions are welcome!

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: Build an OFFICIAL installer

Post#59 by brokenman » 03 Jun 2011, 00:02

Got the OK from the TweakUAC creator. You can use it.
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
Blaze
DEV Team
DEV Team
Posts: 3869
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

Re: Build an OFFICIAL installer

Post#60 by Blaze » 03 Jun 2011, 07:40

Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

Post Reply