Extra Slash in Registry - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

arinearson
Posts: 7
Joined: Thu Jun 14, 2007 9:56 pm

Extra Slash in Registry

Hi there on a few of my app paths after installing the program on the destination computer, an extra slash is introduced into the registy entry.

example:
C:\ProgramFiles\RunInstaller\\Install.exe

Thanks for replies! :lol:
mthopmson
Posts: 7
Joined: Fri Jun 22, 2007 6:47 pm

Whenever I had that happen, it was usually because I used one of AIs variables followed by my own slash, for example:

[APPDIR]\logs

This comes out like c:\program files\my app\\logs....

so just drop the \ (i.e. [APPDIR]logs) and it should work.

Best of luck with that.

Cheers,
Mark
arinearson
Posts: 7
Joined: Thu Jun 14, 2007 9:56 pm

Thank ya sir :)

one last question, same topic, I fixed the areas where i was adding say
[APP_DIR]\blahblah\

but there are a few where it is just one thing but it still adds a \ at the end of it and damages my install
for example
[BXT_DIR] the bracket on the left is Red and the one on the right is Black, if that would help diagnose.

Thanks again
mthopmson
Posts: 7
Joined: Fri Jun 22, 2007 6:47 pm

NP, glad I could help somewhat...

Now about the other slashes...I've only come into the double/unwanted slash when I added a slash myself next to the bracket.

Maybe you'll have to get one of the support guys to look further, but be sure you aren't doing the following:

[BXT_DIR]dir\

if you are adding it to the PATH env variable, the extra slash at the end could cause some issues (like if you are trying to let the JVM use the PATH variable as the load library path).

Sorry I couldn't help more, though.

Mark
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Windows Installer always add an extra slash at the end of a folder path (not a file path). To remove it you need to create a custom action. For a similar approach please see:
http://www.advancedinstaller.com/forums ... .php?t=860

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”