Identify file execution within a ZIP

2

I created an application that was made available for download within a .zip . Within .zip has .exe and some files needed to perform an installation. So far so good.

However, some users do not extract files before installing, they run the .exe file directly from within .zip . Ista generates an error because the application can not find the files needed to proceed with the installation.

So my question is: How do I identify if my app is running from within a .zip ?

Considerations:

1) Because I need a quick fix I can not put everything inside .msi or as built-in features in .exe . This would mean changing the application that is not a good option at the moment.

2) I'm using C # + VS 2012 with Windows Forms

    
asked by anonymous 12.02.2015 / 13:19

2 answers

1

The solution I found to solve my problem was to create an executable that contained the zip file with all the files and put it as Recurso incorporado or Embedded resource and extract the contents and start the zip executable in sequence.

I know that there are better options, such as the use of widely used installers in the market, but for some software peculiarities it was not possible to do this.

    
18.11.2015 / 14:25
0

Your process is right. A technician should install the soft, be it his or her client company. This is an error in the user installation procedure. What you should do is put a note when the user downloads your soft. Most know that you should unpack before running the installer, but of course you always have the uninformed.

    
18.11.2015 / 12:54