MSFN Forum: WinNTSetup v2.3 - MSFN Forum

Jump to content


  • 27 Pages +
  • 1
  • 2
  • 3
  • 4
  • 5
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

WinNTSetup v2.3 small tool to Setup Windows from an(y) win32 environment.

#41 User is offline   click-click 

  • Junior
  • Pip
  • Group: Members
  • Posts: 71
  • Joined: 08-October 09

Posted 01 April 2011 - 04:10 AM

View PostJFX, on 31 March 2011 - 05:06 AM, said:

I'm sorry, but i can not add support for vmware mounted disk. :(
.
.
There maybe is a solution, the vmlite guy's have written their own driver which can mount vdi/vhd and vmdk images.
It's in the current version of VBoot

works very good so far:

vbootctl.exe mount "VMware.vmdk"
vbootctl.exe umount Z:


Posted Image


Okay, I will figure out another way of doing this. I tried vboot and also ended up with 'Operating System not found' on booting after WinNTSetup. I also tried to fix this with the W7 recovery disk.

Bootrec /fixmbr (okay),
Bootrec /fixboot (element not found message)
Bootrec /rebuildBCD (finds windows system then message element not found).

The only thing that works with a .vmdk is using WinNTSetup V1 to install XP. I have not tried that with V2 though.

BTW, VBootctl.exe will install drivers on 1st use and all worked fine until I rebooted. My XP system hung during the boot process and I had to to revert to my last good config. Mount/Umount and reboot worked okay on Vista though. Thanks for taking the time.

This post has been edited by click-click: 01 April 2011 - 04:11 AM



#42 User is offline   JFX 

  • Member
  • PipPip
  • Group: Members
  • Posts: 264
  • Joined: 17-January 11
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 05 April 2011 - 09:20 AM

oh, sorry to hear you had problem with vboot driver.

If you find any way to get this work with vmware, let me know. I have mostly given up Vmware since i switched to windows 7.

Posted Image

#43 User is offline   ilko_t 

  • MSFN Addict
  • Group: Super Moderator
  • Posts: 1,605
  • Joined: 06-December 06
  • OS:none specified
  • Country: Country Flag

Posted 05 April 2011 - 09:59 AM

JFX, nice tool, thanks :thumbup

#44 User is offline   BlueLife 

  • Group: Members
  • Posts: 3
  • Joined: 16-January 11
  • OS:XP Pro x86
  • Country: Country Flag

Posted 15 April 2011 - 01:22 AM

Great work, thanks @JFX :yes:

#45 User is offline   click-click 

  • Junior
  • Pip
  • Group: Members
  • Posts: 71
  • Joined: 08-October 09

Posted 20 April 2011 - 02:27 PM

After running WinNTSetup for WIndows 7 , I have some additional changes that I would like to
automate. I have a question about a few problems that I encountered. Maybe someone can help
resolve them.

I have 5 modified *.msc files (ie. eventvwr.msc etc.) that I want to replace in system32. When I copy
the files, I get Access is denied. It looks like I am missing full control to do this. I can manually change
the security attributes, but would like my setup cmd to be automatic without intervention. I have a similar
problem when I try to modify one of the power schemes with a .reg file. How can I elevate my privileges
to avoid these errors?

#46 User is offline   JFX 

  • Member
  • PipPip
  • Group: Members
  • Posts: 264
  • Joined: 17-January 11
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 21 April 2011 - 02:38 AM

@ilko_t & BlueLife,

happy you like it :)

@ click-click

with windows vista and later most system files belong the "Trusted Installer", no sure why this is so.
At least this is no real security feature, since every elevated process can simply change the ownership.

Windows 7 have takeown.exe and icacls.exe to change the rights, but if you also need to do this under Windows XP, SetACL is a better option.

Here a batch file example to change the permission of 3 files, so everyone with admin rights can use them, as he like.

@echo off
for %%c in	("D:\Windows\System32\eventvwr.msc"
		 "D:\Windows\System32\compmgmt.msc"
		 "D:\Windows\System32\gpedit.msc"
	 ) do (
			 
	SetACL.exe -ot file -on "%%c" -actn setowner -ownr "n:S-1-5-32-544;s:y"
	SetACL.exe -ot file -on "%%c" -actn ace -ace "n:S-1-5-32-544;p:full;s:y"
)



Not sure what the problem with power schemes and the reg file is, can you give more details?

Also there is powercfg.exe that can export and import power settings.

Posted Image

#47 User is offline   click-click 

  • Junior
  • Pip
  • Group: Members
  • Posts: 71
  • Joined: 08-October 09

Posted 21 April 2011 - 05:58 AM

This looks interesting. I believe the the power reg entries that I am trying to change are also protected. I need to start an install for Win7 to get the security attributes for the keys, but your idea about export/import sounds good.

SetACL looks very promising and your sample does the trick. What I would like to do is restore the original permissions after replacing the .msc files. I did a list with the -bckp option, but it won''t restore the original settings.

SetACL.exe -on w:\windows\system32\eventvwr.msc -ot file -actn list -bckp evwrACL

"\\?\w:\windows\system32\eventvwr.msc",1,"DACL(protected+auto_inherited):S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464,full,allow,no_inheritance:Administrators,read_execute,allow,no_inheritance:SYSTEM,read_execute,allow,no_inheritance:Users,read_execute,allow,no_inheritance"
 


I can't change the owner back to S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464 and if I try to change the Administrators permission back to read_ex, it still shows full.

C:\>SetACL.exe -ot file -on "c:\Windows\System32\eventvwr.msc" -actn ace -ace "n:S-1-5-32-544;p:read_ex;s:y"
INFORMATION: Processing ACL of: <\\?\c:\Windows\System32\eventvwr.msc>
SetACL finished successfully.

C:\>SetACL.exe -ot file -on "c:\Windows\System32\eventvwr.msc" -actn setowner -ownr "n:S-1-5-80;s:y"
INFORMATION: Processing ACL of: <\\?\c:\Windows\System32\eventvwr.msc>
SetACL finished successfully.

C:\>SetACL.exe -ot file -on "c:\Windows\System32\eventvwr.msc" -actn setowner -ownr "n:S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464;s:y"
INFORMATION: Processing ACL of: <\\?\c:\Windows\System32\eventvwr.msc>
SetACL finished successfully.

SetACL.exe -on w:\windows\system32\eventvwr.msc -ot file -actn list

"\\?\w:\windows\system32\eventvwr.msc",1,"DACL(protected+auto_inherited):Administrators,full,allow,no_inheritance:S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464,full,allow,no_inheritance:SYSTEM,read_execute,allow,no_inheritance:Users,read_execute,allow,no_inheritance"
SetACL finished successfully.



I guess I haven't caught on how to correctly use SetACL yet. Thanks for any help. :blushing:

This post has been edited by click-click: 21 April 2011 - 11:19 AM


#48 User is offline   JFX 

  • Member
  • PipPip
  • Group: Members
  • Posts: 264
  • Joined: 17-January 11
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 21 April 2011 - 11:46 AM

he he nobody really understands setacl's command line, it's more confusing that the one of most linux/unix apps :lol: ,

just found there is an easy solution to save and restore security informations http://www.coderforl...ities/#security

Posted Image

#49 User is offline   zomk777 

  • Group: Members
  • Posts: 2
  • Joined: 28-April 11
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 28 April 2011 - 07:28 AM

:blink: I use it to install windows 7 from pe(XP based) and select both the boot drive and installation drive as C(first and primary partition of hdd)

:w00t: OK everything goes well...

:wacko: Then after installation finished,I go to "my computer" and I found my OS partition becomes the letter D ..... :wacko: and it's unchangeable ...

I tried again with other option such as change the instdrive to D or mount installation drive as D,but still have some letter errors: in my computer there comes a virtual partition B,it is the same as C(now C is the OS partition)....

#50 User is offline   JFX 

  • Member
  • PipPip
  • Group: Members
  • Posts: 264
  • Joined: 17-January 11
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 29 April 2011 - 08:03 AM

hi zomk777,

that interesting, someone else already report me that the "drive letter preassignment" option can assign 2 letter for a partition.
I could never reproduce this, but mountvol.exe should be able to removed the wrong drive letters. :unsure:

The assignment of the system drive letter always works well for me.
One think that maybe help finding the problem:

- after winntsetup finished load the the offline system hive and save the MountedDevices key:

reg load HKLM\SYS C:\Windows\system32\config 
reg export HKLM\SYS\MountedDevices C:\MountedDevices_before_Reboot.reg
reg unload HKLM\SYS


reboot and let installation continue, after new windows has booted to desktop

export the new MountedDevices key

reg export HKLM\System\MountedDevices C:\MountedDevices_after_Setup.reg


please send me both reg files

Posted Image

#51 User is offline   zomk777 

  • Group: Members
  • Posts: 2
  • Joined: 28-April 11
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 29 April 2011 - 11:46 AM

View PostJFX, on 29 April 2011 - 08:03 AM, said:

hi zomk777,

that interesting, someone else already report me that the "drive letter preassignment" option can assign 2 letter for a partition.
I could never reproduce this, but mountvol.exe should be able to removed the wrong drive letters. :unsure:

The assignment of the system drive letter always works well for me.
One think that maybe help finding the problem:

- after winntsetup finished load the the offline system hive and save the MountedDevices key:

reg load HKLM\SYS C:\Windows\system32\config 
reg export HKLM\SYS\MountedDevices C:\MountedDevices_before_Reboot.reg
reg unload HKLM\SYS


reboot and let installation continue, after new windows has booted to desktop

export the new MountedDevices key

reg export HKLM\System\MountedDevices C:\MountedDevices_after_Setup.reg


please send me both reg files

Posted Image


Hi, thanks for your reply,but i am sorry that i had format my partition after i find the assignment error.so i can't give u my reg file :unsure:

But i used another inst tool and everything goes well (I choose both Inst & boot drive as C),It is also based on Fujianabc's NT6 Fast Installer,but Its interface is Chinese...

hope you can find its code and get something useful. :yes:

http://www.mediafire...6of8xdbm9lmusfb

#52 User is offline   JFX 

  • Member
  • PipPip
  • Group: Members
  • Posts: 264
  • Joined: 17-January 11
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 02 May 2011 - 07:24 AM

Well no problem.

this Win$Man is zhhsh new version, looks very good :thumbup

I guess the main difference is that this app and Fujianabc's NT6 Fast Installer read the MountedDevices of the current running system and I calculate them.

But this should be a more accurate solution, especially in WinPE 1.x, where MountedDevices is not very reliable.

Anyways, good there are alternatives that works :)

Posted Image

#53 User is offline   JFX 

  • Member
  • PipPip
  • Group: Members
  • Posts: 264
  • Joined: 17-January 11
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 03 May 2011 - 11:07 AM

Update: Version 2.0.4.71

- accept nativeVHD Boot for Embedded editions
- fixed wrong reported partition as active primary
- suppress boot configuration error on mounted Vmware/imdisk disk
- added Option to automatically reboot after setup finished
- added Command line switches

Spoiler


feel free to ask or comment about commandline ;)

Posted Image

#54 User is offline   JFX 

  • Member
  • PipPip
  • Group: Members
  • Posts: 264
  • Joined: 17-January 11
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 17 May 2011 - 09:25 AM

View Postzomk777, on 28 April 2011 - 07:28 AM, said:

:blink: I use it to install windows 7 from pe(XP based) and select both the boot drive and installation drive as C(first and primary partition of hdd)

:wacko: Then after installation finished,I go to "my computer" and I found my OS partition becomes the letter D ..... :wacko: and it's unchangeable ...


Thought about it, one reason that it use D: instead of the selected C: could be when the the installation drive is a removable drive.

Currently drive letter assignment only works for fixed disks.

Don't think this will be fixed soon, so If a direct installation of windows to usb is need it's better to use Fujianabc's NT6 Fast Installer.

Posted Image

#55 User is offline   Killerdog 

  • Group: Members
  • Posts: 4
  • Joined: 29-July 11
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 29 July 2011 - 03:47 PM

Hi, sorry for my english but i've got some problem when i try to install windows vista
i've got this message :
Posted Image

maybe it's because it is a french install disk but how can i correct this message ?
I'm using a winPE 1.0 disk for do the job (Gena Winbuild)

it's working perfectly for win XP

thanks in advance

#56 User is offline   JFX 

  • Member
  • PipPip
  • Group: Members
  • Posts: 264
  • Joined: 17-January 11
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 01 August 2011 - 04:44 AM

Hi Killerdog,

is your Windows Vista a original or modified Windows source (maybe a integrated lanaguage pack)?

The bootstr.dll.mui file is a resource only file, so there should not be a problem, installing Vista x64 from a x86 Winpe.

Maybe the file C:\Windows\System32\fr-FR\bootstr.dll.mui got corrupted during copy. :unsure:

Posted Image

#57 User is offline   Killerdog 

  • Group: Members
  • Posts: 4
  • Joined: 29-July 11
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 05 August 2011 - 02:43 PM

Hi,

my vista wim is a AIO version i made from both x86 and x64 disk

i've got the same problem with Seven, and it's an original dvd (both x86 and x64).

i have the same problem with nt6.x fast installer.

i've see this post on reboot pro. but i can't find what i need to do exactely.

temporaly i use the method of Steve6375 on the RMPrepUSB website, but unfortunatly it's work with seven, but with vista it can't find the "Sources/INSTALL.WIM" file (i think it don't load firadisk correctly).

so for now i've got a working solution, but very dirty.

install seven thru steve6375 method; install xp with WinNTSetup v2 (thru a winpe iso); install vista directly from my external hard disk (direct copy of all the directory to the root partition and add a BCD entry to launch the setup.
it's very dirty and i'm not happy with this.

i need some help.

Thanks

This post has been edited by Killerdog: 05 August 2011 - 02:44 PM


#58 User is offline   Lancelot_Real 

  • Junior
  • Pip
  • Group: Members
  • Posts: 88
  • Joined: 14-November 07
  • OS:XP Pro x64
  • Country: Country Flag

Posted 06 August 2011 - 05:23 AM

Hi Killerdog,

JFX made some updates to Gena, which may help !?!?
To ease your tests (in case you miss update) here is current Gena packed
http://www.mediafire...sjtx9cadoxyvgvz

Good luck.......

#59 User is offline   Killerdog 

  • Group: Members
  • Posts: 4
  • Joined: 29-July 11
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 06 August 2011 - 10:26 AM

thanks, i'll test it and see if it's correct my problem

#60 User is offline   Killerdog 

  • Group: Members
  • Posts: 4
  • Joined: 29-July 11
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 11 August 2011 - 06:32 AM

hi,

i test the new version of gena, but it don't solve my problem.

i've got a message that want to install in my external disk M: (where i launch gena with syslinux) when i select the internal disk C: .
i've already have this message in the past and don't know why.

Share this topic:


  • 27 Pages +
  • 1
  • 2
  • 3
  • 4
  • 5
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

7 User(s) are reading this topic
0 members, 7 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy