Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

Crash when making user?

- - - - -

  • Please log in to reply
8 replies to this topic

#1
nivek7

nivek7

    Take that!

  • Member
  • 40 posts
Ok... for all my tests in vmware, it never crashed. But when I install it on my real computer, after it asks for the user stuff and starts creating it, it crashes. (this program has encountered an error. would you like to send report to microsoft or something like that) Sorry, i can't get the log file since this only happens for my real computer... when it is installing...


btw... my comp is a amd64 trying to install 32-bit windows if that makes a differnce


How to remove advertisement from MSFN

#2
BenjaminKalytta

BenjaminKalytta

    Developer

  • Member
  • PipPipPipPip
  • 609 posts
Just yesterday I also reinstalled Windows XP 32 Bit on my AMD 64 system. WIHU didn't crashed there.
Please send me your install.ini and mention me when and from within you called WIHU (GuiRunOnce, cmdlines.txt etc.).

Benjamin

#3
nivek7

nivek7

    Take that!

  • Member
  • 40 posts
here is the install.ini
; SHORT DESCRIPTION OF KEYS
;
; description.x  = Description of the installable software
; command.x 	 = command that should be executed to install the software
; hidden.x 	 = if 1, this sub command will not be showed in list view control
; selected.x 	 = if software will be installed by default (checked in list view control)
; file.x.y 	 = file that should be checked against specified version (greater/less/exists comparison)
; key.x.y 	 = registry key that should be checked against specified data (greater/less comparison)
; ... whereby x is a continuous number of sub commands (command.x) and y is a continuous number
; of unique (enumeration)
;
; Default keys that will be used if not specified:
; selected = 1 (Note this is the selection key for entire section)
; hidden = 0 (section specific invisibility)
; collapsed = 0
;
; hidden.x = 0
; description.x = <missing description>
; selected.x = 0
; key.comparison.x = and
; file.comparison.x = and
; collapsed.x = 0
;
; Strings in command.x, key.x.y and file.x.y will be expanded if necessary.

; NEW IN VERSION 2.1
; There can be theoretically up to 65535 enrties per subtree
; Note: One key "key.a.b.c.d.e.f.g.h...=" must not exceed 255 characters entirely
; To create a sub tree just append sublevel indizes to commands like:
;
; command.0="command 1"
; command.1="command 2"
; command.0.0="sub command 0.0"
; command.0.0.0="sub command 0.0.0"
; command.0.0.1="sub command 0.0.1"
;
; ... Will create following sub tree:
;
; "command 1"
;     "sub command 0.0"
;         "sub command 0.0.0"
;         "sub command 0.0.1"
; "command 2"
;
; Remark: If you hidden a tree, also each of it's subtrees will be hidden also if not specified explicitly
; Root Tree (section name) will never be hidden!

[Environment]

; DefaultHome will set the home directory that will used as default for each new user
; if none is specified by the user
; MozillaFireFoxVersion=HKLM:Software\Mozilla\Mozilla Firefox\CurrentVersion
; MozillaFireFoxPath=HKLM:Software\Mozilla\Mozilla Firefox\%MozillaFireFoxVersion%\Main\Install Directory

DefaultProfilesDir = HKLM:SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\ProfilesDirectory

; Favorites=%systemroot%\My Favorites

; KEYWORD DESCRIPTION
; dimension.update=1 will write WIHU windows size to ini file. Next time WIHU is started, it will adjust
; it's size to corresponding dimension.width and dimension.height parameters.

[settings]
; dimension.update=1
; dimension.width=800
; dimension.height=500
; PageHeaderTitle.x and PageHeaderSubTitle.x sets the header title or subtitle of
; specified page. First page is page 0.
; PageHeaderTitle.0=Title0
; PageHeaderSubTitle.0=SubTitle0
; PageHeaderTitle.1=Title1
; PageHeaderSubTitle.1=SubTitle1
; computer=xyz
; skipsettings=1
skipsoftware=1
;skiprestart=1
nocancel=1
autologon=1
;autoexit=1
norestartchange=1

;[Fully hidden commands, should'nt be displayed ]
;hidden = 1

;command.0=cmd.exe /c @echo Hidden 0
;description.0=(Should not be displayed)
;selected.0=1
;hidden.0=1

;command.0.0=cmd.exe /c @echo Hidden 0.0
;description.0.0=(Should not be displayed)
;selected.0.0=0
;hidden.0.0=1

; SHORT DESCRIPTION OF SECTION USERS
;
; User.x = Will create a new user with specified name and set Password.x
; Group.x can be either 0, 1 or 2. 1 means that new user will be added to "Administrators" Group,
; 0 means "Users" group, 2 will cause WIHU not to move the user to any group.
; Status.x set account status. For valid numbers please look at NetUserAdd API in USER_INFO_1
; struct at "usri1_flags". Description can be found on
; http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netmgmt/netmgmt/user_info_1_str.asp
; Here is a list of values.
;
; #define UF_SCRIPT                          0x0001
; #define UF_ACCOUNTDISABLE                  0x0002
; #define UF_HOMEDIR_REQUIRED                0x0008
; #define UF_LOCKOUT                         0x0010
; #define UF_PASSWD_NOTREQD                  0x0020
; #define UF_PASSWD_CANT_CHANGE              0x0040
; #define UF_ENCRYPTED_TEXT_PASSWORD_ALLOWED 0x0080
; #define UF_DONT_EXPIRE_PASSWD           0x10000
; #define UF_MNS_LOGON_ACCOUNT            0x20000
; #define UF_SMARTCARD_REQUIRED           0x40000
; #define UF_TRUSTED_FOR_DELEGATION       0x80000
; #define UF_NOT_DELEGATED               0x100000
; #define UF_USE_DES_KEY_ONLY            0x200000
; #define UF_DONT_REQUIRE_PREAUTH        0x400000
; #define UF_PASSWORD_EXPIRED            0x800000
; ...
; 
; Profile.x	specifies the users profile path
; RoamingProfile.x	specifies the roaming profile path
; Home.x	specifies the path of the home directory for the new user
; Comment.x	contains a comment to associate with the user account
; Script.x	specifies the path for the user's logon script file.
; 	 The script file can be a .CMD file, an .EXE file, or a .BAT file.
; Domain.x	Domain/Computer where to create the user. If none is specified
; 	 local system will be used.
; Default = x	specifies the index of the user which should be used as default user
; 	 i.e. this which will be used for software installation.
; Crypted.x	Do not change this, it will be generated automatically by calling "WIHU /EncryptIni"
;  and will be removed by "WIHU /DecryptIni"
;  If you remoce Crypted.x key, you have to adjust corresponding password.x key
;  otherwise password.x will not be decrypted correctly.
; If some of the specified users already exists, user data will be updated with this
; new one specified here.
;
; PREDEFINED VOLATILE ENVIRONMENT VARIABLES
; %ThisUser%	Will be replaced by the corresponding user name
; %ThisHome%	Will be replaced by the corresponding user home path (ONLY if specified here)
; %ThisProfile%	Will be replaced by the corresponding user profile path (ONLY if specified here)

; PREDEFINED SHELL PATHS ARE FOLLOWING
; Note: If you set one of this in here, it will be also set for newly created user
;
; Administrative Tools
; Cache
; CD Burning
; Cookies
; Desktop
; Favorites
; Fonts
; History
; Local AppData
; Local Settings
; My Music
; My Pictures
; My Video
; NetHood
; Personal
; PrintHood
; Programs
; Recent
; SendTo
; Start Menu
; Startup
; Templates

; My Video.x=%systemdrive%\Videos

[Users]

Default=1

User.1=New User
Group.1=1
;Script.1=logon.cmd
;Status.1=0x10028
;Status.1=0x20000
Comment.1=Your Newly Created User Account
;home.1=c:\%ThisUser%
;profile.1=%ThisHome%
;roamingprofile.1=%ThisHome%\roaming
; My Video.1=c:\%ThisUser%\Videos

;Domain.2=axp-vpc
;User.2=New Domain User
;Password.2=abc_12345_ssanz_48739722367475
;Group.2=1
;Status.2=0x0020
;Comment.2=This is a new domain user which will be created at specified domain

; Disable Administrator account
;user.0=Administrator
;status.0=0x002
;Group.0=1
;crypted.0=32

;user.2=cde
;password.2=4A3178034B307F044A314A31EA
;crypted.2=12


[environment.0]
UserTestEnvVar1=Testdata 1 from users.ini [environment.0] section
UserTestEnvVar2=Testdata 2 from users.ini [environment.0] section

; KEYWORD DESCRIPTION
; delete.x=UserName@Domain, (whereby Domain is optional) will delete specified existing windows user account
; disable.x/enable.x=UserName@Domain, (whereby Domain is optional) will disable/enable specified existing windows user account
; Rename.x=FromUser@Domain, ToUser renames a user
[Users.Operation]
; delete.0=ASPNET
; disable.0=New User@axp
; rename.0=new user@axp, new

and i ran it during runonceex

#4
my2001

my2001

    Member

  • Member
  • PipPip
  • 260 posts
Is this above really your install.ini?? Because when you leave out all of the comments the following remains:

[Environment]DefaultProfilesDir = HKLM:SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\ProfilesDirectory

[settings]
skipsoftware=1
nocancel=1
autologon=1
norestartchange=1

[Users]
Default=1
User.1=New User
Group.1=1
Comment.1=Your Newly Created User Account

[environment.0]
UserTestEnvVar1=Testdata 1 from users.ini [environment.0] section
UserTestEnvVar2=Testdata 2 from users.ini [environment.0] section

[Users.Operation]


Just wondering. *hehe*

And unfortunately I can't help you very much with your problem, but I had it once, too: WIHU crashed right after I clicked OK and it ought to start it's working process. But this was because of my let's say broken Windows system that time. I reinstalled Windows and everything worked out well again. What I want to say: I _guess_ the problem isn't related directly with WIHU.

#5
BenjaminKalytta

BenjaminKalytta

    Developer

  • Member
  • PipPipPipPip
  • 609 posts
@nivek7: When you run WIHU from within Windows (after installation) with the same settings and install.ini, does it also crash then?
Otherwise, is "Data Execution Prevention" on or off?
Btw. in your settings ini, NO user will be created because the one and only user start with index 1, which isn't possible here.
[environment.0] will also be ignored then, remains [settings] section.

Benjamin

#6
my2001

my2001

    Member

  • Member
  • PipPip
  • 260 posts
@Benjamin

Another question: Are the spaces in front of and behind the equal sign " = " allowed?

[Environment]
DefaultProfilesDir = HKLM:SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\ProfilesDirectory


#7
BenjaminKalytta

BenjaminKalytta

    Developer

  • Member
  • PipPipPipPip
  • 609 posts

Another question: Are the spaces in front of and behind the equal sign " = " allowed?

Of course, as many as you want ;)

Benjamin

#8
nivek7

nivek7

    Take that!

  • Member
  • 40 posts
It works after installation. (with DEP disabled and I don't know if it works with DEP on) I think its the data execution prevention that is making it crash. I've been having lots of problems with it until I disabled it. (I disabled it after all install was finished).

For the config part, i want the person to make their own username/pass etc. ( no problems here )

thx for your help

#9
BenjaminKalytta

BenjaminKalytta

    Developer

  • Member
  • PipPipPipPip
  • 609 posts
No DEP isn't the problem, I didn't disabled it and it worked.
There must be another problem, may be this isn't a WIHU problem.

Benjamin




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN