Wow! Danke schön! Ed for the updated code. Yep I am a big W7 fan can you tell? lol. Your code is only 3kb and working Great for OEMs, I won't be able to test on a Non-Oem machine til late next week, but I see you have set "$manufacturer=custom" but do not
have a goto Custom like Squashman's post, so will it work with a non-oem or does that need to be added? The custom thing was why this thread started in the first place.
btw..I am not familiar with :§init ( paramRAW ) what does that do?
[SOLVED] ~ OEM BRANDING HELP ~
Moderator: DosItHelp
-
- Posts: 233
- Joined: 21 Nov 2010 08:07
- Location: At My Computer
Re: ~ OEM BRANDING HELP ~
If at any point in time you use goto, look very carefully whether you really need it.Dos_Probie wrote:but do not have a goto Custom like Squashman's post
In 95% of cases it can be replaced with a 'call cmd /c exit %errorLevel%'.
The only valid cases of using goto is when breaking a loop 'for /l %%? in () do goto :breakFor'.
Nothing, to DOS everything after a label is comment.Dos_Probie wrote:I am not familiar with :§init ( paramRAW ) what does that do?
Re: ~ OEM BRANDING HELP ~
Hi Dos Probie,
Ed is setting the manufacturer name to custom first and then it will be changed if it finds a new manufacturer in the wmic command. So it works for OEM and custom.
Ed, thanks for writing the code. No computer for me for a few more days until I get back home.
Ed is setting the manufacturer name to custom first and then it will be changed if it finds a new manufacturer in the wmic command. So it works for OEM and custom.
Ed, thanks for writing the code. No computer for me for a few more days until I get back home.
-
- Posts: 233
- Joined: 21 Nov 2010 08:07
- Location: At My Computer
Re: ~ OEM BRANDING HELP ~
Thanks for the info Squash, So do i need a :Custom label with the code added if it doesnt find one of the above OEMs listed or is just going to automatically
do the install as long as my folder is listed Custom
btw, yes I did get the Bill trojan virus thats been going around on here but I got him quarantine now and all is back to normal again ..
do the install as long as my folder is listed Custom
btw, yes I did get the Bill trojan virus thats been going around on here but I got him quarantine now and all is back to normal again ..
Re: ~ OEM BRANDING HELP ~
You shouldn't need any redundant code at all for your non oem computers.
If the directory structure and file names are consistent with the oem and non oem computers then you only need one set of code to do what you want.
If the directory structure and file names are consistent with the oem and non oem computers then you only need one set of code to do what you want.
-
- Posts: 233
- Joined: 21 Nov 2010 08:07
- Location: At My Computer
Re: ~ OEM BRANDING HELP ~
Sounds good...I will test it out on one of my custom built machines when
I return home next week..
I return home next week..