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.

RunOnceEx inf install

Featured Replies

Hey Guys,

I need some expertice. :)

I've read some topics about runonceex inf install, but my problem still exists.

This is my inf file:

[Version]
Signature="$Windows NT$"

[SourceDisksNames]
1 = %cdname%,%cdtagfile%,,\I386

[DefaultInstall]
AddReg=RunOnceEx.Addreg

[RunOnceEx.AddReg]
HKLM,"%RunOnceEx%\",Title,0,"(CDROM Drive: %1%)"
HKLM,"%RunOnceEx%\",Flags,0x00010001,20

[Strings]
cdname = "Windows XP Professional CD-ROM"
productname = "Windows XP Professional"
cdtagfile = "\win51ip"

My problem is when the inf is executed by cmdlines it works but the driveletter for my cdrom is the path where the inf is executed.

"D:\$OEM$"

I tried:

1 = %cdname%,%cdtagfile%,,\I386

1 = %cdname%,%cdtagfile%,,""

Even changed the variable %1% to %1 or %01%

but it doesn't work.

I have my additional software in the I386 directory named SOFTWARE.

I like a clean TOC :thumbup

What am I doing Wrong. :blushing:


Click here to read all about running RunOnceEx from CD-ROM.

A possible approach might be to use HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\\SourcePath. I've never used the .inf method (that's why I'm searching the forum for guidance), so I can't help for syntax, except to suggest the advice in your signature.

The DIRID %01% is correct, it obviously references D:\$OEM$\ because that is the location of the running inf file.

I think that you're confused, the SourcDisksNames section is not setting a variable for the root source of the inf, it is identifying the souce disk for use with a SourceDisksFiles section for any files to be transferred to the PC during the installation.

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

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.