Old 23rd February 2012, 14:06   #1
mike_darling
Junior Member
 
Join Date: Feb 2012
Posts: 3
nsis installer opens in background

is there a way to make sure it opens in front of other open windows?
mike_darling is offline   Reply With Quote
Old 23rd February 2012, 14:10   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
How about providing some useful info?

How are you starting the installer?
Are you using any plugins?

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 23rd February 2012, 14:44   #3
mike_darling
Junior Member
 
Join Date: Feb 2012
Posts: 3
My apologies. I will try to answer as best as possible. I have inherited this from a previous employee and i am trying to learn and fix at the same time.

The script is built using a web interface on a server we have and uses a .build file and an nsi file to create the installer. the installer is downloaded from the web and opens on the users computer - again i apologize if i am stating the obvious.

!include WordFunc.nsh
!include LogicLib.nsh
!include nsisXML.nsh
!include EnvVarUpdate.nsh
!include MUI.nsh

those are the plugins that are included.
mike_darling is offline   Reply With Quote
Old 23rd February 2012, 15:01   #4
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
Includes are not plugins, they are header files (nsh = nsis script header). Plugins are what's called like PluginName::PluginFunction. Search for those in your script.

Here's an extremely easy way to find out what's causing your problem:
- Remove half of the code (functionality) from your installer, compile, and run.
- If it still happens, remove another half.
- Keep removing code until the problem disappears. Then slowly re-add code until you find the command / commands that cause the installer to start out-of-focus.
MSG is offline   Reply With Quote
Old 23rd February 2012, 15:13   #5
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
So, you click a link in a browser and then choose open?

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 23rd February 2012, 15:23   #6
mike_darling
Junior Member
 
Join Date: Feb 2012
Posts: 3
yes.
mike_darling 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