Jump to content


Photo

Make custom installer file of windows 7 add new folders


  • Please log in to reply
13 replies to this topic

#1 oggge

oggge

    Lurker

  • Members
  • Pip
  • 2 posts
  • OS:non-selected

Posted 06 October 2011 - 05:54 AM

I'm looking for a way to add several folders so they are there upon install, are there any instructions or place to start in doing this through w7t or any another program?

#2 crashfly

crashfly

    WinCert Pro

  • Members
  • PipPipPipPipPip
  • 338 posts
  • Location:Arkansas, USA
  • OS:Windows 7 x64

Posted 06 October 2011 - 04:04 PM

Yes, they are similar to the XP way of doing things, except the location is different. Instead of in the root for XP, the $OEM$ folder has been moved to the location under sources: "\sources\$OEM$". You might have to look up the specific syntax, but as far as I remember '$OEM$\$$' refers to the Windows directory, '$OEM$\$1' is the root of the system drive and so on. There is a great explanation for it here: http://unattended.ms...xp/view/web/18/ however I do not know if every convention used carries over to Win7. At least it will give you a starting point.

#3 *Reaper*

*Reaper*

    Windows 7 AddOn Maker

  • Addon Maker
  • 801 posts
  • OS:Windows 7

Posted 06 October 2011 - 08:29 PM

It would be a little better with a bit more info....

If your just wanting to copy a folder to a directory like Program Files or Windows... You can use the Tasks.txt file and have
Windows 7 Toolkit do it for you....

Name=My Folders
Creator=*Reaper*
Version=1.0.0.0
Arc=x86! (x86! only for x86 source... x64 only for x64 source)
Description=Copies my folder to where I want.
Website=http://www.wincert.net/
 
[CopyFolder]
Example Folder::Program Files	 (This will copy the "Example Folder" to Program Files so after installation it would be c:\Program Files\Example Folder)
MAKE SURE YOU REMOVE EVERYTHING in ()... I just put them there so you would know the use for them.

Then just take the "Example Folder" and the Tasks.txt file and zip them both to a filename such as My_Example_Addon.WA

Then use Windows 7 Toolkit and add it as a addon....

Hope this helps.... If not, tell me exactly what you are wanting to do and I'll try and help you out.

Edited by *Reaper*, 06 October 2011 - 08:31 PM.


#4 oggge

oggge

    Lurker

  • Members
  • Pip
  • 2 posts
  • OS:non-selected

Posted 06 October 2011 - 09:42 PM

I think that will do what i was looking for exactly, thank you! I will try it right away to be sure.

#5 compstuff

compstuff

    WinCert Pro

  • Members
  • PipPipPipPipPip
  • 405 posts
  • Location:Miami, FL
  • OS:Windows 7 x64

Posted 03 April 2012 - 11:23 PM

Just found this Reaper...THANKS VERY MUCH

It would be a little better with a bit more info....

If your just wanting to copy a folder to a directory like Program Files or Windows... You can use the Tasks.txt file and have
Windows 7 Toolkit do it for you....

Name=My Folders
Creator=*Reaper*
Version=1.0.0.0
Arc=x86! (x86! only for x86 source... x64 only for x64 source)
Description=Copies my folder to where I want.
Website=http://www.wincert.net/

[CopyFolder]
Example Folder::Program Files	 (This will copy the "Example Folder" to Program Files so after installation it would be c:\Program Files\Example Folder)
MAKE SURE YOU REMOVE EVERYTHING in ()... I just put them there so you would know the use for them.

Then just take the "Example Folder" and the Tasks.txt file and zip them both to a filename such as My_Example_Addon.WA

Then use Windows 7 Toolkit and add it as a addon....

Hope this helps.... If not, tell me exactly what you are wanting to do and I'll try and help you out.



#6 Legolash2o

Legolash2o

    Win Toolkit Programmer

  • Global Mods
  • 4,068 posts
  • Location:Hull, UK.

Posted 04 April 2012 - 12:27 AM

Thanks *Reaper*, i've also finished a standard guide for users too : http://www.wincert.n...00-addon-maker/

P.S. Keep up the great work! It's much appreciated.

Edited by Legolash2o, 04 April 2012 - 12:28 AM.


#7 ElmerBeFuddled

ElmerBeFuddled

    Advanced Member

  • Members
  • PipPipPip
  • 79 posts
  • Location:Durham. UK
  • OS:Windows 7 x64

Posted 04 April 2012 - 06:29 AM

Excellent stuff Reaper, so much easier than slipping in to each image.

#8 compstuff

compstuff

    WinCert Pro

  • Members
  • PipPipPipPipPip
  • 405 posts
  • Location:Miami, FL
  • OS:Windows 7 x64

Posted 08 April 2012 - 04:15 PM

Reaper I am just about to do some tests and was wondering a few things:
1) If the folders I am copying are already created will this just add the files to the folders?
2) Is there a way to copy just files to a particular sub-folder in the Program Files (x86) directory.
One task I am looking to do is always copy the same three files to my Malwarebytes directory

It would be a little better with a bit more info....

If your just wanting to copy a folder to a directory like Program Files or Windows... You can use the Tasks.txt file and have
Windows 7 Toolkit do it for you....

Name=My Folders
Creator=*Reaper*
Version=1.0.0.0
Arc=x86! (x86! only for x86 source... x64 only for x64 source)
Description=Copies my folder to where I want.
Website=http://www.wincert.net/

[CopyFolder]
Example Folder::Program Files	 (This will copy the "Example Folder" to Program Files so after installation it would be c:\Program Files\Example Folder)
MAKE SURE YOU REMOVE EVERYTHING in ()... I just put them there so you would know the use for them.

Then just take the "Example Folder" and the Tasks.txt file and zip them both to a filename such as My_Example_Addon.WA

Then use Windows 7 Toolkit and add it as a addon....

Hope this helps.... If not, tell me exactly what you are wanting to do and I'll try and help you out.



#9 *Reaper*

*Reaper*

    Windows 7 AddOn Maker

  • Addon Maker
  • 801 posts
  • OS:Windows 7

Posted 09 April 2012 - 12:52 PM

Reaper I am just about to do some tests and was wondering a few things:
1) If the folders I am copying are already created will this just add the files to the folders?
2) Is there a way to copy just files to a particular sub-folder in the Program Files (x86) directory.
One task I am looking to do is always copy the same three files to my Malwarebytes directory


1: I beleive so.. (But Im not 100% sure) I think it will just merge whatever files you are copying into the already created folder.
2: Yes... Just use the [FileCopy] command.

[CopyFile]
MyFile.exe::Program Files (x86)\Other Dir\Mine (This will copy the "MyFile.exe" to c:\Program Files (x86)\Other Dir\Mine)

#10 compstuff

compstuff

    WinCert Pro

  • Members
  • PipPipPipPipPip
  • 405 posts
  • Location:Miami, FL
  • OS:Windows 7 x64

Posted 09 April 2012 - 03:08 PM

Thanks trying it now...

1: I beleive so.. (But Im not 100% sure) I think it will just merge whatever files you are copying into the already created folder.
2: Yes... Just use the [FileCopy] command.

[CopyFile]
MyFile.exe::Program Files (x86)\Other Dir\Mine (This will copy the "MyFile.exe" to c:\Program Files (x86)\Other Dir\Mine)



#11 Worf

Worf

    Advanced Member

  • Members
  • PipPipPip
  • 69 posts
  • OS:Windows 7 x64

Posted 30 April 2012 - 04:49 PM

Why don't you just add them straight to the Mount folder?

I add all my font's, wallpaper, themes, small apps ect this way without any problems.
  • Use Imagex to mount the .wim file to say 'C:\Mount'.
  • Once mounted, open the 'C:\Mount' directory'. This will display the contents of the .wim file. ( (Program Files) - (Program Files(x86)) - (Windows) - ect)
  • Goto the directory where you want these folders, and just create a new folder.
  • Copy any Fonts, Wallpapers, Themes, ect into the correct folders.
  • When you have done everything use Imagex to unmount the .wim image. Make sure you use the /Commit argument to commit the changes.
This is how i do it and also things like 'Adobe Flash Player - Shockwave Player - Adobe Reader - DirectX 10.1', and their registry settings.
I also do the same with some of my applications all registered and ready to run when i do a fresh install.

#12 *Reaper*

*Reaper*

    Windows 7 AddOn Maker

  • Addon Maker
  • 801 posts
  • OS:Windows 7

Posted 30 April 2012 - 05:19 PM

Yeah.. You can do it that way.. But using WinKit to do it for you by way of a addon is just less "hands on"...

And it helps others actually learn how to make simple addons...

#13 Worf

Worf

    Advanced Member

  • Members
  • PipPipPip
  • 69 posts
  • OS:Windows 7 x64

Posted 30 April 2012 - 06:45 PM

Yes that is true *Reaper*, just thought i would give an alternative way of doing it. But like you said using addons is less hands-on, and it is much safer.

#14 *Reaper*

*Reaper*

    Windows 7 AddOn Maker

  • Addon Maker
  • 801 posts
  • OS:Windows 7

Posted 30 April 2012 - 07:57 PM

Yeah.. Having more than one way is always good...

Like they say... There is more than one way to skin a cat :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users