Ethalone Community Forums
September 09, 2010, 08:13:40 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: No way to prevent uninstallation?  (Read 672 times)
dc_dweller
Newbie
*
Posts: 2


« on: March 03, 2010, 02:34:33 pm »

I used version 3.x for many years, and would continune using it but had to upgrade to 4.x because I need native 64-bit support.

To my great surprise and disappointment, the setup runs fine the first time but asks the user if he wants to uninstall the application the 2nd time he runs the setup. Can someone please tell me there is an option to disable this behavior. I don't want my users to have the product uninstalled unless they explicitly run the Uninstall.exe icon.

I have read some posts on this issue here, and the response from the moderators seems to be, "this behavior is by design." I refuse to believe it! Please someone tell me I am dreaming? Dear Ethalone developers, you cannot deprive us of the option to "just installl the product again for the 2nd or 3rd or 100th time", even if it is the exact same version. I just want the setup to overwrite whatever is there. I don't want the Uninstall option to be forced upon my poor users. I would have to look for a different installer product and I really don't want to do it.

Hope to hear something reassuring from the forum members.

Thanks!

-- D.C. Dweller
« Last Edit: March 03, 2010, 02:36:34 pm by dc_dweller » Logged
SnakeBite
Global Moderator
Sr. Member
*****
Posts: 474



« Reply #1 on: March 03, 2010, 08:31:13 pm »

Actually, when you start the installation again at asks if you want to uninstall, repair or add-remove components. You can make it start the install again using this script:
Code:
        <event eventid="EV_SELECTINSTALLMODE" name="New handler" whenhandle="before_plugins">
            <if expression='%PackageFileName%="Uninstall.exe"'>
                <then>
                    <action expression="InstallMode:=1"/>
                </then>
                <else>
                    <action expression="InstallMode:=0"/>
                </else>
            </if>
        </event>
Logged
dc_dweller
Newbie
*
Posts: 2


« Reply #2 on: March 04, 2010, 01:50:01 pm »

Where does the <events> go? I tried to put it right underneath <giproject> but it tells me "Incorrect project format."

Thanks.

-- DC.
Logged
SnakeBite
Global Moderator
Sr. Member
*****
Posts: 474



« Reply #3 on: March 05, 2010, 02:17:20 am »

Yes, it should be right after the giproject opening tag. Looks like you're using a free version that doesn't support scripting action. In this case you have to create a plug-in that does the same thing.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.123 seconds with 18 queries.