Jump to content

How to move folders to windows\temp wihthout using $oem$


Recommended Posts

I have severial folders should be moved to windows\temp during the installation process, but i don't want to use $oem$ to move them.

I want to integrate them into the I386 folder and copy them through modifiying TXTSETUP.SIF.

Is there anyone have ideas for this? :rolleyes:

Link to comment
Share on other sites


to set %systemdrive%\Temp as default temp folder :

u can change the path accordingly to whereever u want.

place createTemp.cmd file inside SVCPACK dir and add the following in svcpack.inf :

[setupHotfixesToRun]

createTemp.cmd

createTemp.cmd

-------------------

@echo off
TITLE Create temp directory
cd /d %SystemDrive%
md %SystemDrive%\Temp
FOR %%i IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%i:\XP_SP2.CD SET CDROM=%%i:
%systemroot%\regedit.exe /s %CDROM%\$OEM$\Appz\createTemp.reg
exit

createTemp.reg

------------------

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Environment]
"TEMP"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,44,00,72,00,69,00,76,\
00,65,00,25,00,5c,00,54,00,65,00,6d,00,70,00,00,00
"TMP"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,44,00,72,00,69,00,76,00,\
65,00,25,00,5c,00,54,00,65,00,6d,00,70,00,00,00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment]
"TEMP"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,44,00,72,00,69,00,76,\
00,65,00,25,00,5c,00,54,00,45,00,4d,00,50,00,00,00
"TMP"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,44,00,72,00,69,00,76,00,\
65,00,25,00,5c,00,54,00,45,00,4d,00,50,00,00,00

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Environment]
"TEMP"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,44,00,72,00,69,00,76,\
00,65,00,25,00,5c,00,54,00,45,00,4d,00,50,00,00,00
"TMP"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,44,00,72,00,69,00,76,00,\
65,00,25,00,5c,00,54,00,45,00,4d,00,50,00,00,00

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Control\Session Manager\Environment]
"TEMP"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,44,00,72,00,69,00,76,\
00,65,00,25,00,5c,00,54,00,45,00,4d,00,50,00,00,00
"TMP"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,44,00,72,00,69,00,76,00,\
65,00,25,00,5c,00,54,00,45,00,4d,00,50,00,00,00

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet003\Control\Session Manager\Environment]
"TEMP"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,44,00,72,00,69,00,76,\
00,65,00,25,00,5c,00,54,00,45,00,4d,00,50,00,00,00
"TMP"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,44,00,72,00,69,00,76,00,\
65,00,25,00,5c,00,54,00,45,00,4d,00,50,00,00,00

Edited by rajesh.kumar
Link to comment
Share on other sites

put your file(s) into i386 and add line(s) under [sourceDisksFiles] like this

[sourceDisksFiles]

myfile.ext = 1,,,,,,,45,0,0

The number 45 means %systemroot%\Temp (see section [WinntDirectories])

If you dont want your files have to be in i386 but another folder just define a source ID in [sourceDisksNames.x86] section

see also http://www.msfn.org/board/index.php?showtopic=14852

Link to comment
Share on other sites

put your file(s) into i386 and add line(s) under [sourceDisksFiles] like this

[sourceDisksFiles]

myfile.ext = 1,,,,,,,45,0,0

The number 45 means %systemroot%\Temp (see section [WinntDirectories])

If you dont want your files have to be in i386 but another folder just define a source ID in [sourceDisksNames.x86] section

see also http://www.msfn.org/board/index.php?showtopic=14852

Link to comment
Share on other sites

Thx. But your way only move single file to the destination folder. I have already known it.

But I need move a folder to the destination folder. For example: move a folder to windows\temp\ during installation process.

Link to comment
Share on other sites

I have been doing this for a couple of years now, using HFSLIP. I'm not sure whether folders are moved with the script as it is at present, because I rewrote a section of it to give myself this functionality. The guys on that forum will be able to advise you better.

Link to comment
Share on other sites

How do it ? Can you tell me your method in detail? Thank you a lot!
No!

Go to the HFSLIP forum and ask them there. The project has come a long way and at present I am not sure if the changes I made to the code for my own purposes will still work. The method I used however is similar to that which has already been mentioned, using TXTSETUP etc. to define destination directories and move the specified files to that location.

Link to comment
Share on other sites

AFAIK txtsetup.sif does not support wildcard or just folder name. But you can pack all your files and subfolders (recursive) in 1 self-extracting rar or 7z file and copy it via txtsetup.sif, right? MS does copying driver.cab in the same way.

Link to comment
Share on other sites

Just to clarify, using dosnet.inf and txtsetup.sif I do create destination directories and place all pertinent files there as part of my modified HFSLIP script. If I wanted to put a folder full of files into C:\WINDOWS\Temp\MyDir, I could.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...