dinesh_oi
1st June 2007 18:16 UTC
install dependencies
Being a novice ,,,
I need to install make an nsis script which can automatically install the dependencies in my application if they are not in user's compputer for that i just have to put the dependencing software ( all files ) ....or should make an seprate package
my doubt is "Can we make a script which can install application(any file ) and install it's dependencies in the backhand"
if it is possible CAn anybody give me hint
some code will be really helpful..
Joel
1st June 2007 18:58 UTC
There are a few ways to do that... there are macros examples in the wiki page.
The main object is:
1. Detect if users have the dependecy file, use IfFileExists.
2. If Don't, then install it, with the simple File command, as you use it for install any files.
3. Once Install, register it with RegDLL.
Simple, huh?
The only errors that you can get is..if the dependency file doesn't have entry point.
demiller9
2nd June 2007 00:02 UTC
You can get other errors: if there are dependencies and the necessary dll is not in the PATH. Make sure the PATH variable is updated (if necessary) before calling REGDLL.
Don
Joel
2nd June 2007 00:44 UTC
Originally posted by demiller9
You can get other errors: if there are dependencies and the necessary dll is not in the PATH. Make sure the PATH variable is updated (if necessary) before calling REGDLL.
Don
That would be a n00b error ;)
demiller9
2nd June 2007 02:23 UTC
That would be a n00b error
And we all know there aren't any n00bs here! ;)