Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

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:

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

  • Author

Thx! But your method is too complex and I want to use TXTSETUP.SIF.

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

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

Can someone send me bios update for dell inspiron 6400 date 2007.2.6 (mm061a13)

thank's in advance

  • Author

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.

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.

  • Author

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

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.

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.

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.

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.