Build an OFFICIAL installer
- fanthom
- Moderator Team
- Posts: 5622
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Re: Build an OFFICIAL installer
@Blaze
could you provide updated "win_start_here.hta" + TweakUAC.exe for testing, please.
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.
- Blaze
- DEV Team
- Posts: 3741
- Joined: 28 Dec 2010, 11:31
- Distribution: ⟰ Porteus current ☯ all DEs ☯
- Location: ☭ Russian Federation, Lipetsk region, Dankov
- Contact:
Re: Build an OFFICIAL installer
fanthom, ok - try it http://www.mediafire.com/?hda9fytk32x2ltp
Linux 5.15.11-porteus #1 SMP Sat Dec 25 13:08:57 MSK 2021 x86_64 Intel(R) Core(TM) i5-6600K CPU @ up to 4.60GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16
- Ahau
- King of Docs
- Posts: 1331
- Joined: 28 Dec 2010, 15:18
- Distribution: LXDE & Xfce 32/64-bit
- Location: USA
Re: Build an OFFICIAL installer
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!!
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!
- Blaze
- DEV Team
- Posts: 3741
- Joined: 28 Dec 2010, 11:31
- Distribution: ⟰ Porteus current ☯ all DEs ☯
- Location: ☭ Russian Federation, Lipetsk region, Dankov
- Contact:
Re: Build an OFFICIAL installer
Ahau, your steps is right.
Then to you will be accessible the choice (2 buttons) Restart now and Restart later. The settings is save (change).Does Tweak UAC automatically reboot the machine when the settings are changed?
Linux 5.15.11-porteus #1 SMP Sat Dec 25 13:08:57 MSK 2021 x86_64 Intel(R) Core(TM) i5-6600K CPU @ up to 4.60GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16
- fanthom
- Moderator Team
- Posts: 5622
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Re: Build an OFFICIAL installer
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?
what do you think Ahau?
Please add [Solved] to your thread title if the solution was found.
- Ahau
- King of Docs
- Posts: 1331
- Joined: 28 Dec 2010, 15:18
- Distribution: LXDE & Xfce 32/64-bit
- Location: USA
Re: Build an OFFICIAL installer
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:
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!
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.
Thanks, guys!
Please take a look at our online documentation, here. Suggestions are welcome!
- Blaze
- DEV Team
- Posts: 3741
- Joined: 28 Dec 2010, 11:31
- Distribution: ⟰ Porteus current ☯ all DEs ☯
- Location: ☭ Russian Federation, Lipetsk region, Dankov
- Contact:
Re: Build an OFFICIAL installer
Open win_start_here.htaI think we should have the button say "Tweak UAC"
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">
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">
All okThis is what I've written for the install guide. Let me know if this sounds clear and direct...

Linux 5.15.11-porteus #1 SMP Sat Dec 25 13:08:57 MSK 2021 x86_64 Intel(R) Core(TM) i5-6600K CPU @ up to 4.60GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16
- Blaze
- DEV Team
- Posts: 3741
- Joined: 28 Dec 2010, 11:31
- Distribution: ⟰ Porteus current ☯ all DEs ☯
- Location: ☭ Russian Federation, Lipetsk region, Dankov
- Contact:
Re: Build an OFFICIAL installer
I updated my TweakUAC (ex. UAC by Blaze)
Download TweakUAC by Blaze.

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
Linux 5.15.11-porteus #1 SMP Sat Dec 25 13:08:57 MSK 2021 x86_64 Intel(R) Core(TM) i5-6600K CPU @ up to 4.60GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16
Re: Build an OFFICIAL installer
Nice!!! 
This is cool. And, each word is correct! Really hope it makes it into the final release!

This is cool. And, each word is correct! Really hope it makes it into the final release!
- Blaze
- DEV Team
- Posts: 3741
- Joined: 28 Dec 2010, 11:31
- Distribution: ⟰ Porteus current ☯ all DEs ☯
- Location: ☭ Russian Federation, Lipetsk region, Dankov
- Contact:
Re: Build an OFFICIAL installer
agreimann, yeah 
i don't like one thing in my TweakUAC - big size
P.S. sorry about my English. I'm noob of

i don't like one thing in my TweakUAC - big size

P.S. sorry about my English. I'm noob of

Last edited by Blaze on 02 Jun 2011, 18:32, edited 1 time in total.
Linux 5.15.11-porteus #1 SMP Sat Dec 25 13:08:57 MSK 2021 x86_64 Intel(R) Core(TM) i5-6600K CPU @ up to 4.60GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16
-
- Full of knowledge
- Posts: 363
- Joined: 02 Jan 2011, 18:41
- Distribution: Porteus 5.0-RC1
- Location: In a hayfield
Re: Build an OFFICIAL installer
It may be better to show a short explanation as to the risk.This is necessary in order to modify the Master Boot Record of your flash drive, and it will temporarily put your computer at risk
If I were a newbie, I'd close it down on seeing that.
roadie
- Blaze
- DEV Team
- Posts: 3741
- Joined: 28 Dec 2010, 11:31
- Distribution: ⟰ Porteus current ☯ all DEs ☯
- Location: ☭ Russian Federation, Lipetsk region, Dankov
- Contact:
Re: Build an OFFICIAL installer
roadie, probably - it's my hacck app 
All suggestions are welcome

All suggestions are welcome

Linux 5.15.11-porteus #1 SMP Sat Dec 25 13:08:57 MSK 2021 x86_64 Intel(R) Core(TM) i5-6600K CPU @ up to 4.60GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16
- Ahau
- King of Docs
- Posts: 1331
- Joined: 28 Dec 2010, 15:18
- Distribution: LXDE & Xfce 32/64-bit
- Location: USA
Re: Build an OFFICIAL installer
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!
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!
- brokenman
- Site Admin
- Posts: 6104
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
- Contact:
Re: Build an OFFICIAL installer
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.
Wear your underpants on the outside and put on a cape.
- Blaze
- DEV Team
- Posts: 3741
- Joined: 28 Dec 2010, 11:31
- Distribution: ⟰ Porteus current ☯ all DEs ☯
- Location: ☭ Russian Federation, Lipetsk region, Dankov
- Contact:
Re: Build an OFFICIAL installer
Linux 5.15.11-porteus #1 SMP Sat Dec 25 13:08:57 MSK 2021 x86_64 Intel(R) Core(TM) i5-6600K CPU @ up to 4.60GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16