MSFN Forum: Can REGEDIT /S run in an addon - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Can REGEDIT /S run in an addon Rate Topic: -----

#1 User is offline   daddydave 

  • Member
  • PipPip
  • Group: Members
  • Posts: 102
  • Joined: 08-December 06
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 22 January 2007 - 11:15 PM

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

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)


#2 User is offline   Ausmith1 

  • Member
  • PipPip
  • Group: Members
  • Posts: 110
  • Joined: 11-October 03

Posted 22 January 2007 - 11:52 PM

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...

#3 User is offline   daddydave 

  • Member
  • PipPip
  • Group: Members
  • Posts: 102
  • Joined: 08-December 06
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 23 January 2007 - 12:08 AM

View PostAusmith1, on Jan 23 2007, 12:52 AM, said:

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.

#4 User is offline   Tomcat76 

  • MSFN Junkie
  • Group: Developers
  • Posts: 3,171
  • Joined: 08-August 05

Posted 23 January 2007 - 01:36 AM

If you're using Win2K, you need full paths.

%SYSTEMROOT%\REGEDIT /S IZArcFileAssocs.reg

#5 User is offline   daddydave 

  • Member
  • PipPip
  • Group: Members
  • Posts: 102
  • Joined: 08-December 06
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 23 January 2007 - 02:06 AM

View PostTomcat76, on Jan 23 2007, 02:36 AM, said:

If you're using Win2K, you need full paths.

%SYSTEMROOT%\REGEDIT /S IZArcFileAssocs.reg


Ah, thank you!

#6 User is offline   tommyp 

  • MSFN Addict
  • Group: Developers
  • Posts: 1,664
  • Joined: 09-January 04
  • OS:none specified
  • Country: Country Flag

Posted 23 January 2007 - 04:57 AM

You can put reg files in the HFSVCPACK folder too.

#7 User is offline   daddydave 

  • Member
  • PipPip
  • Group: Members
  • Posts: 102
  • Joined: 08-December 06
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 23 January 2007 - 10:03 AM

View Posttommyp, on Jan 23 2007, 05:57 AM, said:

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.

#8 User is offline   daddydave 

  • Member
  • PipPip
  • Group: Members
  • Posts: 102
  • Joined: 08-December 06
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 23 January 2007 - 11:42 AM

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.

This post has been edited by daddydave: 23 January 2007 - 11:45 AM


#9 User is offline   Tomcat76 

  • MSFN Junkie
  • Group: Developers
  • Posts: 3,171
  • Joined: 08-August 05

Posted 26 January 2007 - 06:59 PM

TommyP told me this a couple of months ago. ;)

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy