Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
I am using Inno Setup to build installer. I want to force user to install driver at the end of installation. My driver installation will prompt the user to restart the machine.
If i use Post Install Flag in [Run] section, i am able to achieve it, but here i am giving an option for the user to decide whether to install or not. I dont want to give user that option.
 
If i am not using Post install Flag, my driver gets installed and prompts user to restart the machine before my application gets completely installed and configures few system settings.
 
So how can i achieve my requirement? I appreciate a good suggestion. Thanks in advance.
 
how do i install driver at the end of installation, with out giving user an option to decide weather to install or not?
 

Regards,
 
Saji
Posted 2-Nov-11 6:51am
Edited 11-Nov-11 20:26pm
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

What if you start the installer from a batch file and wait for it to finish then start the driver installation (again from the batch) without prompting the user? Of course, you would want to still show the user you're doing something with some sort of feedback.
 
If all this is done from a CD, having an extra batch file wouldn't hurt. Only issue would be if you tried to have the installer be a single executable (not sure if that's what you're trying to do).
  Permalink  
Comments
gssajith87 at 3-Nov-11 0:51am
   
Thank u. But i am trying to have the installer as a single executable.
gssajith87 at 3-Nov-11 0:55am
   
I feel it would be solvable, if there is an option or flag in inno script equivalent to POST INSTALL FLAG, by which the check box at the finish wizard is hidden and the installation happens just before the finish button is click. Ultimately, the driver installation should be the last step of installation, hidden from the user.
 
Thanks
Albert Holguin at 3-Nov-11 1:08am
   
I've never used the specific install software you're using, so I can only suggest things outside of that installer... Have another possible solution...
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

If it is critical for your app to have that driver installed, another possible solution might be for the application itself to check if the driver is installed when it is first run (do this by looking at the registry), and if the driver is not installed, launch the installer programmatically from your application. After the installation, you can make the startup faster by placing some install token in the registry so you don't have to look for the driver next time.
  Permalink  
Comments
gssajith87 at 3-Nov-11 4:25am
   
Thanks for your suggestion.
But, i feel not to have the check or installation procedure inside my application. I wish to know if there is any thing that is possible using inno script.
 
Thanks
Albert Holguin at 3-Nov-11 11:00am
   
I believe they have their own help forums as well don't they? Why don't you try asking for help there... I use InstallShield for my installations...
gssajith87 at 3-Nov-11 4:31am
   
I feel so, because i dont want my users to launch the application for using and it will restart the machine due to driver installation. I feel it will take the feel out of the user using the product.
 
Thanks,

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web03 | 2.8.1411022.1 | Last Updated 12 Nov 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100