Help - Search - Members - Calendar
Full Version: Can REGEDIT /S run in an addon
MSFN Forums > Member Contributed Projects > HFSLIP

   
Google Internet Forums Unattended CD/DVD Guide
daddydave
Using Addon Maker for nLite to create addons for HFSLIP, I have several addons that use a custom batch file as the installation program. They all work fine after I correct simple user errors, but I have one addon in particular that has a line like

CODE
REGEDIT /S IZArcFileAssocs.reg


This doesn't seem to be working, now I am wondering if REGEDIT can even run in an addon. Is it possible? (I know about REG.EXE so I'll use if I have to, assuming that works)
Ausmith1
Are you sure that your REG file is valid?
For instance having anything other than "Windows Registry Editor Version 5.00" in the first line will cause REGEDIT to fail without any error popping up. It's happened to me before when I added a comment on the first line rather then further on down the file...
daddydave
QUOTE (Ausmith1 @ Jan 23 2007, 12:52 AM) *
Are you sure that your REG file is valid?


Yep, it does what I want if I double click on it manually.

I think I'll take out the /S for troubleshooting purposes and see if I get any useful errors.
Tomcat76
If you're using Win2K, you need full paths.

%SYSTEMROOT%\REGEDIT /S IZArcFileAssocs.reg
daddydave
QUOTE (Tomcat76 @ Jan 23 2007, 02:36 AM) *
If you're using Win2K, you need full paths.

%SYSTEMROOT%\REGEDIT /S IZArcFileAssocs.reg


Ah, thank you!
tommyp
You can put reg files in the HFSVCPACK folder too.
daddydave
QUOTE (tommyp @ Jan 23 2007, 05:57 AM) *
You can put reg files in the HFSVCPACK folder too.


I know, but keeping it with the app seemed like the right thing to do -- for now.
daddydave
tomcat76:

Not only did the full path to REGEDIT fix my addon problem, you got me thinking I should put the full path to REGEDIT in my CMDLINES.TXT batch file as well, and this fixed a hair-pulling issue with my HKCU.reg..

So double thanks!

Thanks to all for the other suggestions, too.
Tomcat76
TommyP told me this a couple of months ago. newwink.gif
Google Internet Forums Unattended CD/DVD Guide
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.