Jump to content

Can REGEDIT /S run in an addon


Recommended Posts

Posted

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)


Posted

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

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

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

Posted (edited)

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.

Edited by daddydave

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