Old 12th April 2011, 17:35   #1
bitwise
Junior Member
 
Join Date: Mar 2007
Posts: 14
GeoTargeting

I have an app I'm bundling in our installer, and they only want to show the screen for US installs. Is there some kind of way to geotarget so it will show that screen only for US users?

Thanks!
bitwise is offline   Reply With Quote
Old 12th April 2011, 18:34   #2
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
This is not a question about NSIS installer coding. If you need help with programming your application, you'll have to ask elsewhere.



Edit: Hmm, maybe I misunderstood your question. If you want to get the country the installer is run in, there are several ways to go about it, but I don't think any of them is foolproof or even good to use. Try googling for 'windows get country'. You can use the system plugin to call windows API commands.
MSG is offline   Reply With Quote
Old 12th April 2011, 19:09   #3
bitwise
Junior Member
 
Join Date: Mar 2007
Posts: 14
Thanks for your response.

I was looking over the plugins and maybe the IP Plugin will work in this instance?

I would just need an IP database of some sort for the plugin to lookup and determine the end user's location.

Whatcha think?
bitwise is offline   Reply With Quote
Old 12th April 2011, 19:35   #4
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
Using reverse DNS lookup is extremely unreliable, even more unreliable than, say, calling GetLocalInfoEx. Also, reverse DNS requires an internet connection, and the user will probably get a warning from the firewall software. I don't think you'll want this.

There's no real way of doing what you want. Any solution you'll end up using will be 1) unreliable, 2) easy to crack, and 3) probably very annoying to your users. I strongly (VERY strongly) suggest you rethink your installation strategy.
MSG 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