Install on Vista or 7

Here you can post about non-standard installation methods
(for example when using grub4dos).
User avatar
Blaze
DEV Team
DEV Team
Posts: 3860
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

Re: Install on Vista or 7

Post#31 by Blaze » 23 Apr 2011, 11:37

Hamza, no problem.
I tweaked my code. Try my a new version porteus2usb.exe
Thanks for your sugession :)
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
Hamza
Warlord
Warlord
Posts: 1908
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: Install on Vista or 7

Post#32 by Hamza » 23 Apr 2011, 12:19

Your software is not compatible with XP.

Could you add a function for detect the REG Key of UAC in regedit?
NjVFQzY2Rg==

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

Re: Install on Vista or 7

Post#33 by Blaze » 23 Apr 2011, 16:47

Hamza wrote:Your software is not compatible with XP.
hm, XP does not have UAC and my software all the same should work for you.
Simple in XP then you press the button "Yes" - is run bootinst.bat in cmd from your flash drive.
Hamza wrote:Could you add a function for detect the REG Key of UAC in regedit?
My algorithm is contains it (look at my old share code).
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
Hamza
Warlord
Warlord
Posts: 1908
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: Install on Vista or 7

Post#34 by Hamza » 23 Apr 2011, 16:49

Could you share the last code?
NjVFQzY2Rg==

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

Re: Install on Vista or 7

Post#35 by Blaze » 23 Apr 2011, 17:10

Code: Select all

#NoTrayIcon
#RequireAdmin
Opt("TrayIconHide", 1)
$a = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System"
$b = "ConsentPromptBehaviorAdmin"
$c = "REG_DWORD"
$d = "0"
$e = "PromptOnSecureDesktop"
$f = "EnableLUA"
$aDrives = DriveGetDrive("All")
$var1 = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System", "ConsentPromptBehaviorAdmin")
$var2 = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System", "PromptOnSecureDesktop")
$var3 = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System", "EnableLUA")
$response = MsgBox(4, "Warning", 'This program will temporarily disable UAC. This may put your computer at risk.' & @CR & 'It necessary for install Porteus to a flah drive.' & @CR & '' & @CR & 'Note!' & @CR & '' & @CR & 'If UAC is active, your system will be rebooted for disable it.' & @CR & 'If is not, to you it will be accessible a command line interpreter.' & @CR & '' & @CR & 'When you have installed Porteus on your usb flash you can active UAC manually. You will need to type “uac” in the Start menu, click "Change User Account Control Settings" and restart.' & @CR & '' & @CR & 'Are you sure you want to continue?')
If $response = 6 then
If $var1 = 5 Then
	FileWrite (@CommonFilesDir & "\System\en-US\mui\log.txt","Text")
	RegWrite($a, $b, $c, $d)
EndIf
If $var2 = 1 Then
	FileWrite (@CommonFilesDir & "\System\en-US\mui\log.txt","Text")
	RegWrite($a, $e, $c, $d)
EndIf
If $var1 = 2 Then
	FileWrite (@CommonFilesDir & "\System\en-US\mui\log.txt","Text")
	RegWrite($a, $b, $c, $d)
EndIf
If $var3 = 1 Then
	FileWrite (@CommonFilesDir & "\System\en-US\mui\log.txt","Text")
	RegWrite($a, $f, $c, $d)
	SplashTextOn("Warning", 'UAC was disabled.' & @CR & 'Your OS will reboot.' & @CR & 'After reboot run the porteus2usb.exe installer again and follow instruction.', 310, 250, -1, -1, "", "", 24)
	Sleep(15000)
	Shutdown(2)
	Exit
EndIf
For $i = 1 To $aDrives[0]
	If DriveStatus($aDrives[$i]) <> "READY" Then ContinueLoop
	If FileExists($aDrives[$i] & "\boot\scripts\bootinst.bat") Then
		Run($aDrives[$i] & "\boot\scripts\bootinst.bat")
		ExitLoop
    EndIf
Next
Else
	Exit
EndIf
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
Hamza
Warlord
Warlord
Posts: 1908
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: Install on Vista or 7

Post#36 by Hamza » 23 Apr 2011, 17:14

Why , have you used the #NoTrayIcon function ?

Why , you don't add the icon of Porteus?
NjVFQzY2Rg==

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

Re: Install on Vista or 7

Post#37 by Blaze » 23 Apr 2011, 17:21

Hamza,
1) If you want to see the Icon AutoIt in your tray - i can cut this part of code.
But i think it does not need.
2) I think it does not need. I prefer usb icon for it.
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
Hamza
Warlord
Warlord
Posts: 1908
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: Install on Vista or 7

Post#38 by Hamza » 23 Apr 2011, 17:22

Okay , you're the programmer !
NjVFQzY2Rg==

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

Re: Install on Vista or 7

Post#39 by agreimann » 23 Apr 2011, 18:51

Hello, all.

I would like to state that I will not be building the Porteus installer. Yes, it is half-built, but I see that there are several other versions that are coming up. The installer that Blaze has written, seeing that it is honestly good, after giving him a UAC tip, works very well. Therefore, I cannot see why the installer which Blaze has written cannot be the official installer. To be honest, my version would run a GUI program "Preflight", which would notify the user, then turn on the Administrator account. Then, one would run a GUI installer, which would then call for Command Prompt to run as Administrator in the background, and install Porteus normally. Blaze has solved this problem in a much more efficient way by directly dealing with UAC. I commend him for his excellent work, and I think that he will release the official installer! I can see at this point whose installer is the best out of the two. Thank you, everyone, for your patience and understanding. Go Porteus!

-- Andrew

User avatar
Hamza
Warlord
Warlord
Posts: 1908
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: Install on Vista or 7

Post#40 by Hamza » 23 Apr 2011, 20:15

I would like to state that I will not be building the Porteus installer. Yes, it is half-built, but I see that there are several other versions that are coming up. The installer that Blaze has written, seeing that it is honestly good, after giving him a UAC tip, works very well. Therefore, I cannot see why the installer which Blaze has written cannot be the official installer. To be honest, my version would run a GUI program "Preflight", which would notify the user, then turn on the Administrator account. Then, one would run a GUI installer, which would then call for Command Prompt to run as Administrator in the background, and install Porteus normally. Blaze has solved this problem in a much more efficient way by directly dealing with UAC. I commend him for his excellent work, and I think that he will release the official installer! I can see at this point whose installer is the best out of the two. Thank you, everyone, for your patience and understanding. Go Porteus!
Please , Don't abandone your installer , the community will see the best installer , and maybe , you can help Blaze with your knowledge.
NjVFQzY2Rg==

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

Re: Install on Vista or 7

Post#41 by agreimann » 24 Apr 2011, 03:08

@Hamza: Thanks for your support which I really do appreciate, but as I now see it, this is no longer possible. :)

Blaze definitely has the better installer, as like I had stated earlier, it deals directly with UAC. Mine does not, and I would *not* take the UAC approach, but an Administrator approach, and personally, as long as the installer tells the user what they're going to get into, I don't see any problems that Blaze's installer poses anymore--I think my suggestion made it better than the one I was writing. Additionally, mine would be the *fourth* installer in the line-up, and we really only need one. Adding another installer into the mix will make it harder for the community to vote, especially if all of them were really good when everyone finished programming. Now, I could rewrite my current installer to work identical to Blaze's, but then if I did that, it would be a mere copy of his, which I wouldn't see as being right, if the idea was originally his. I hope that now people can see where I'm coming from.

-- Andrew

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

Re: Install on Vista or 7

Post#42 by fanthom » 24 Apr 2011, 23:30

@Blaze
tried your installer on Xp and worked fine after clicking "ok' on first window.
So far it has one advantage over installer written by brokenman: it disables UAC. i'm wonder if you could add functionality of checking the DOCS to your installer same as it's present in brokenman's one. i like also the background in HTA installer and size - it's 2KB only.
Let me know in case of further updates to your application.

BTW: "porteus2usb" script exist already so another name could be chosen.

@agreimann
hmmm.. sorry to hear that but i understand: no point for doubling the job. Hope you will contribute to us in the future :)

Cheers
Please add [Solved] to your thread title if the solution was found.

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

Re: Install on Vista or 7

Post#43 by Blaze » 25 Apr 2011, 05:58

fanthom wrote:i'm wonder if you could add functionality of checking the DOCS to your installer same as it's present in brokenman's one.
What do you mean about DOCS function?
Probably mr. brokenman will send me a code of this function...
fanthom wrote:"porteus2usb" script exist already so another name could be chosen.
Ok. What do you think about name: "port2flash" ?

Cheers
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
Hamza
Warlord
Warlord
Posts: 1908
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: Install on Vista or 7

Post#44 by Hamza » 25 Apr 2011, 09:25

I suggest PWI (Porteus Windows Installer) ?
NjVFQzY2Rg==

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

Re: Install on Vista or 7

Post#45 by fanthom » 25 Apr 2011, 20:28

@Blaze
please run 'win_start_here.hta' from 32/64 bit beta/rc1 and you will see the menu:
1) Requirements
2) Install Guide
3) Cheatcodes
4) etc....
i would like to have it in your installer in case it will be the default one.
Please add [Solved] to your thread title if the solution was found.

Post Reply