Problem in Custom Action: .NET Installer Class Action - 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!

fBurghardt
Posts: 5
Joined: Mon Jul 19, 2010 3:24 pm

Problem in Custom Action: .NET Installer Class Action

Hi,
I've implemented a "Custom Action" with call to a .NET Installer Class.
This action will change the flag "ReadOnly'" to "ReadWrite" of an installed file, because this file is'nt implemented into the setup and was copied from CD.
So I have changed the "Action Data" and add a new "Installer Class Parameter" [APPDIR].
This was now my line in the installer:
/LogFile= /ReqVersion=2.0.50727 /InstallType=notransaction /Action=Install /DataDir="[Data_DIR]" "[#InstallFeatures.dll]" "[TempFolder]dotNetCustAct.dll_Config.xml"
Running Setup creates the error message: "... System.IO.FileNotFoundException...InstallFeatures.dll..."
After editing this line in the aip-project with a text editor and changin the qoute marks from
DataDir="[Data_DIR]"
to
DataDir=[Data_DIR]
all becomes fine.
But changing my Programm Files folder from "TestSetup1" to "TestSetup 1" (only one blank in the folder name) the same error message come.

The problem is, that in an english operating system the program folder is named "Program Files".

So I'm not able to build my setup without any errors.

Hope some one can help.

Regards, Frank
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Problem in Custom Action: .NET Installer Class Action

Hi Frank,

All folder references are ended with a backslash character ("\"). When using a folder reference inside quotes you should always add a space after the reference so the quote is not escaped. For your custom action you can try using:

Code: Select all

/DataDir="[Data_DIR] "
Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
fBurghardt
Posts: 5
Joined: Mon Jul 19, 2010 3:24 pm

Re: Problem in Custom Action: .NET Installer Class Action

Hi Cosmin,

thank you very much for your quick respone.
Now all is working and I'm very happy.

Regards,
Frank

Return to “Common Problems”