Old 1st June 2007, 17:16   #1
dinesh_oi
Junior Member
 
Join Date: May 2007
Location: hyderabad
Posts: 12
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..
dinesh_oi is offline   Reply With Quote
Old 1st June 2007, 17:58   #2
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
Join Date: Jan 2003
Location: Arch land
Posts: 4,917
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.


* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with MATE.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with MATE.
Joel is offline   Reply With Quote
Old 1st June 2007, 23:02   #3
demiller9
Senior Member
 
Join Date: Mar 2006
Location: Dallas
Posts: 462
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
demiller9 is offline   Reply With Quote
Old 1st June 2007, 23:44   #4
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
Join Date: Jan 2003
Location: Arch land
Posts: 4,917
Quote:
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


* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with MATE.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with MATE.
Joel is offline   Reply With Quote
Old 2nd June 2007, 01:23   #5
demiller9
Senior Member
 
Join Date: Mar 2006
Location: Dallas
Posts: 462
Quote:
That would be a n00b error
And we all know there aren't any n00bs here!
demiller9 is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump