Page 2 of 2

Re: ~ OEM BRANDING HELP ~

Posted: 31 Aug 2012 13:00
by Dos_Probie
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? :?:

Re: ~ OEM BRANDING HELP ~

Posted: 31 Aug 2012 13:16
by Ed Dyreen
Dos_Probie wrote:but do not have a goto Custom like Squashman's post
If at any point in time you use goto, look very carefully whether you really need it.
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'.
Dos_Probie wrote:I am not familiar with :§init ( paramRAW ) what does that do? :?:
Nothing, to DOS everything after a label is comment.

Re: ~ OEM BRANDING HELP ~

Posted: 31 Aug 2012 14:15
by Squashman
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.

Re: ~ OEM BRANDING HELP ~

Posted: 31 Aug 2012 17:35
by Dos_Probie
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 .. :mrgreen:

Re: ~ OEM BRANDING HELP ~

Posted: 31 Aug 2012 18:05
by Squashman
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.

Re: ~ OEM BRANDING HELP ~

Posted: 31 Aug 2012 18:19
by Dos_Probie
Sounds good...I will test it out on one of my custom built machines when
I return home next week.. 8)