Ошибка invalid start mode archive filename что делать

Недавно я хотел упаковать программу и поискал несколько инструментов для упаковки в Интернете. В конце концов я почувствовал, что SetupFactory удобен в использовании, и затем я с радостью загрузил его. Я был очень доволен предыдущим. Но при удалении после окончательной установки возникла проблема.

После выполнения uninstall.exe под целью установки появится следующая ошибка
Я поискал в Интернете и не нашел решения.
Наконец обнаружил, что ярлык удаления, созданный в меню «Пуск», можно удалить обычным способом

означает, что программа с красной рамкой может выполняться в обычном режиме, и ее практичность также может удовлетворить потребности. Однако некоторым людям нравится переходить в каталог установки, чтобы найти программу удаления (например, я), на этот раз Будут проблемы, поэтому я могу только продолжить поиск решения. Откройте расположение файла и проверьте этот файл. Я обнаружил, что файл является ярлыком для удаления файла uninstall.exe, но команда была выполнена при выполнении ярлыка.
это
G:HrzVisuninstall.exe “/U:g:HrzVisUninstalluninstall.xml”
Фактически он передает XML-файл программе удаления, а затем моя идея состоит в том, чтобы использовать функцию сценария setupfactory для создания ярлыков и добавления команд самостоятельно.
Итак, решение:

1. После завершения установки сценарий выполняет следующую команду, чтобы добавить ярлык для uninstall.exe и поместить ярлык в каталог установки, которым является% AppFolder%.


Shell.CreateShortcut (SessionVar.Expand («% AppFolder%»), SessionVar.Expand («Удалить% ProductName%»), SessionVar.Expand («% AppFolder% uninstall.exe» ), SessionVar.Expand («% AppFolder% uninstall.exe» /U:%AppFolder%Uninstalluninstall.xml «»), SessionVar.Expand («% AppFolder%»), SessionVar.Expand («% AppFolder% uninstall.exe «), 0, SW_SHOWNORMAL, nil,» «);
Здесь следует отметить одну вещь: если вы используете инструмент сценария, поставляемый с SetupFactory, для добавления кода сценария в целевой элемент, если вы используете поле выбора справа, чтобы выбрать целевой файл, файл uninstall.exe отсутствует, потому что файл не был добавлен установочной фабрикой в ​​это время. , Поэтому вам нужно использовать код, чтобы добавить это. (Будьте уверены, что хотя целевой файл не существует, он не сообщит об ошибке)

2. В это время созданный вами установочный пакет будет находиться в каталоге установки после установки.
Удалите файл, нажмите «Удалить». Однако вы обнаружите, что этот файл все еще будет существовать после завершения удаления.Это связано с тем, что файл автоматически добавляется вами с помощью сценария, поэтому во время удаления нет записи об этом файле в каталоге удаления.
3. Есть два способа удалить этот файл, если вы хотите удалить его: первый — добавить этот файл в список удаления в коде сценария только сейчас, а второй — при удалении. Удалите этот файл, потому что моя программа будет автоматически генерировать файл журнала при запуске, поэтому я использую метод прямого очищения установочного каталога при удалении.


resultF = Folder.DoesExist(SessionVar.Expand(«%AppFolder%»));
if (resultF) then
Folder.DeleteTree(SessionVar.Expand(«%AppFolder%»),nil);
end
Пока проблема решена.

Invalid Start mode :archive filename fails to uninstall when Setup Factory uninstalls

Recently, I have to package the program to find a few packaging tools on the Internet. Finally, I feel that SetupFactory is comfortable, and then I am happy to download and use it. I am very satisfied with the front. However, there was a problem when uninstalling after the final installation.

After executing the uninstall.exe under the installation target, the following error will pop up.
I found a solution on the Internet without finding a solution.
Finally found that the build shortcut in the start menu can be uninstalled normally.

is the red box of this can be executed normally, its practicality can also meet the needs, but some people like to go to the installation directory to find the uninstaller (such as me), this time There will be problems, so I can only continue to find a solution, open the file location to view this file and find that the file is a shortcut to uninstall.exe, just execute a command when the shortcut is executed.
is this
G:HrzVisuninstall.exe “/U:g:HrzVisUninstalluninstall.xml”
It is actually passing the xml file to the uninstaller, and then my idea is to use the script function of setupfactory to create a shortcut to add commands.
So the solution is:

First, the installation complete script executes the following command to add a shortcut to uninstall.exe to put the shortcut into the installation directory ie %AppFolder%


Shell.CreateShortcut(SessionVar.Expand(«%AppFolder%»), SessionVar.Expand(«Unload %ProductName%»), SessionVar.Expand(«%AppFolder%uninstall.exe» ), SessionVar.Expand(«%AppFolder%uninstall.exe «/U:%AppFolder%Uninstalluninstall.xml»»), SessionVar.Expand(«%AppFolder%»), SessionVar.Expand(«%AppFolder% uninstall.exe»), 0, SW_SHOWNORMAL, nil, «»);
There is a need to pay attention to this, if you use the script tool that comes with the SetupFactory to add the script code in the target, if you use the right selection box to select the target file, there is no uninstall.exe file because the setupfactory has not added the file at this time. , so this you have to add using the code. (Reassure that although the target file does not exist, it will not be reported)

Second, this time the installation package you generated will be installed in the installation directory.
Uninstall the file, click Uninstall. However, you will find that this file will still exist after the uninstallation is completed. This is because the file is automatically added by the script, so there is no record of this file in the uninstall directory when uninstalling.
Third, when you want to uninstall this file, there are two ways. The first one is to add this file to the uninstall list in the script code, the second is when uninstalling Delete this file, because my program will automatically generate log files when it runs, so the method I use is to empty the installation directory directly when uninstalling.


resultF = Folder.DoesExist(SessionVar.Expand(«%AppFolder%»));
if (resultF) then
Folder.DeleteTree(SessionVar.Expand(«%AppFolder%»),nil);
end
This problem is solved.

Intelligent Recommendation

More Recommendation

When tomcat starts flashing (tomcat fails to start)

When I double-click tomcat, the black command box flashes and the server does not start. The possible causes are as follows: First of all, it is necessary to clarify the reasons for the flash. The met…

Copyright  DMCA © 2018-2023 — All Rights Reserved — www.programmersought.com  User Notice

Top

Today when I going to uninstall WindowBlinds, the following error will pop up « Invalid start mode: archive filename», how can I fix this problem?

Subscription Options

Watch this post


Do not email me updates for this post

Email me updates for this post

Reason for Karma (Optional)

Successfully updated karma reason!

Hello,
Sorry to hear you are having issues. If you trouble uninstalling Windowblinds, you could try the purge part of this guide : https://forums.stardock.com/486023/windowblinds-support-faq#reinstalling

Thanks
Basj,
Stardock Community Assistant.

Reason for Karma (Optional)

Successfully updated karma reason!

Reason for Karma (Optional)

Successfully updated karma reason!

What does not work? What error popup when you run the purgexxx.bat file?

Thank you,

Basj,
Stardock Community Assistant

Reason for Karma (Optional)

Successfully updated karma reason!

Welcome Guest! Please take the time to register with us.

There are many great features available to you once you register, including:

  • Richer content, access to many features that are disabled for guests like commenting and posting on the forums.
  • Access to a great community, with a massive database of many, many areas of interest.
  • Access to contests & subscription offers like exclusive emails.
  • It’s simple, and FREE!

Sign in or Create Account




недопустимый режим запуска: имя файла архива | Обзор ПК

JavaScript отключен. Для лучшего опыта, пожалуйста, включите JavaScript в вашем браузере, прежде чем продолжить.

  • haralds

    Indigo Rose Customer

    • Join Date: Jul 2007
    • Posts: 127

    Windows 8 error «Invalid start mode: archive file name», when running Uninstall

    10-21-2013, 06:17 PM

    On Windows 8.1 I get the error «Invalid start mode: archive file name», when running Uninstall either from Start Menu or chained from the installer as part of an update.

    There is no problem from the Control Panel, or earlier Windows versions (7, XP, etc.)

    Windows 8 also gets confused with desktop alias icons, but that’s another story…

    Setup Factory is the latest 9.2

  • Ulrich

    Indigo Rose Staff Member

    • Join Date: Apr 2005
    • Posts: 5032

    The uninstaller should be started ONLY from the Control Panel — Add/Remove Programs (or Programs and Features). The error you are getting would happen on other operating systems as well, as well as with former versions of Setup Factory. Recent software deployment guidelines state that the Uninstaller should not appear in the Start menu.

    Ulri

    Comment

  • haralds

    Indigo Rose Customer

    • Join Date: Jul 2007
    • Posts: 127

    Thanks. But I do need to run before Update. How do I deal with that issue?

    Comment

  • Ulrich

    Indigo Rose Staff Member

    • Join Date: Apr 2005
    • Posts: 5032

    I am not sure that I understood correctly, please clarify if I didn’t get it right. If you wish to run the uninstaller before deploying a newer release, you need to execute the uninstaller executable with the proper arguments. You can extract the full command line from the registry, as I show in the script of my «Uninstall former version» custom screen.

    This should end up in running something similar to

    Code:

    "%ProgramFilesFolder%%CompanyName%%ProductName%Uninstalluninstall.exe" "/U:%ProgramFilesFolder%%CompanyName%%ProductName%UninstallUninstall.xml"

    Ulrich

    Comment

  • haralds

    Indigo Rose Customer

    • Join Date: Jul 2007
    • Posts: 127

    That is what I have been doing for years, including passing parameters to avoid unnecessary screens using this flow. But I get the error in this case, too.

    Comment

  • Ulrich

    Indigo Rose Staff Member

    • Join Date: Apr 2005
    • Posts: 5032

    The «Invalid start mode: archive file name» message suggests that you are not passing the command line arguments properly. It may help if you log the actual command you execute, and verify that you aren’t making any errors (missing quotes, not expanding some Session Variable, etc.).

    Ulrich

    Comment

  • haralds

    Indigo Rose Customer

    • Join Date: Jul 2007
    • Posts: 127

    Thanks, will investigate.
    The error comes at the end of the process, on the last script event screen.
    It does not occur on Windows 7, Vista, Xp.

    Comment

  • haralds

    Indigo Rose Customer

    • Join Date: Jul 2007
    • Posts: 127

    The uninstall command and parameter is well formed and correct. This is also, why it executes without general issues except for this error.

    Running standalone, I do not get the error dialog until I hit the Finish button on the Uninstall Successful screen.

    Logs are clean and free of unexpected errors.

    Any other ideas?

    Comment

  • Ulrich

    Indigo Rose Staff Member

    • Join Date: Apr 2005
    • Posts: 5032

    You could post the project and the uninstallation log files, hopefully documenting the line where the error happens.

    Ulrich

    Comment

  • haralds

    Indigo Rose Customer

    • Join Date: Jul 2007
    • Posts: 127

    The error does not happen until after the installation is closed. It does not happen during script execution.

    I just checked in the registry, and the Program management panel has the same command in the registry that is in the short cut. It does not get the error.

    Comment

  • haralds

    Indigo Rose Customer

    • Join Date: Jul 2007
    • Posts: 127

    I have attached one of the projects with the error log.

    Comment

  • Ulrich

    Indigo Rose Staff Member

    • Join Date: Apr 2005
    • Posts: 5032

    I see that you are deleting the %AppFolder% folder tree during On Post Uninstall while the uninstaller is still running at that location (%AppFolder%Uninstall).

    I also see that you are having lots of errors in the uninstallation log (ERROR_PATH_NOT_FOUND), in the On Shutdown event, which happens after you deleted files which are still expected to exist.

    At a first test, I would remove the Folder.DeleteTree() command and see if this helps.

    Ulrich

    Comment

  • haralds

    Indigo Rose Customer

    • Join Date: Jul 2007
    • Posts: 127

    It was the first place I looked. And removing it did not fix it, but left the root app folder. But I will look again.
    Clearly the most logical cause.

    Comment

  • haralds

    Indigo Rose Customer

    • Join Date: Jul 2007
    • Posts: 127

    Removed it. Does not change anything except for uninstall not always removing everything as it should.

    Comment

  • Ulrich

    Indigo Rose Staff Member

    • Join Date: Apr 2005
    • Posts: 5032

    Originally posted by haralds

    View Post

    On Windows 8.1 I get the error «Invalid start mode: archive file name», when running Uninstall either from Start Menu or chained from the installer as part of an update.

    Where do you create the shortcut for the uninstaller in the Start menu in this project? I don’t see it… can you help?

    Ulrich

    Comment

Понравилась статья? Поделить с друзьями:
  • Ошибка iostream no such file or directory
  • Ошибка invalid signature detected check secure boot policy
  • Ошибка iostream file not found
  • Ошибка invalid remid при запуске симс 4
  • Ошибка io netty channel abstractchannel annotatedconnectexception как решить