Identify file execution within a ZIP

Asked

Viewed 212 times

2

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

However some users do not perform file extraction before installing, they run the file .exe directly from within the .zip. Ista generates an error as the application cannot find the necessary files to proceed with the installation.

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

Considerations:

1) By needing a quick solution I can’t put everything within one .msi or as features incorporated in .exe. This would imply changing the application which at the moment is not a good option.

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

  • Why not create a Winzip SFX or EXE.

  • As far as I know, when we run the EXE’s inside the zip file, Winrar, for example, unzips in the windows temp folder. Share error that gives when your system runs inside zip.

  • @Guilhermenascimento could explain better?

  • @Pablovargas the application does not give error, it checks before starting the installation if the files exist, if there is no it does not proceed. But files may not exist for more than one reason, not just because they are in a temp folder.

  • by chance your executable does not have the file paths fixed?

  • @Pablovargas They are not fixed paths, they are relative to the application execution folder

Show 1 more comment

2 answers

1


The solution I found for solving 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 perform content extraction and start zip executable in sequence.

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

0

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

  • In this case as the software is for final client, would not have the need to have a technician always available to perform the installation.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.