Jump to content
Ketarin forum

Error when press install button


Gerontius
 Share

Recommended Posts

Hi, @Gerontius.

What version of Ketarin are you using? The other thread you were commenting on is almost ten years old.

Which app are you having problems with? Select it in the main Ketarin interface, press CTRL+C to copy the App structure, then paste it here in a code block. This will let us review it to see what's happening.

Link to comment
Share on other sites

Hello shawn,

thx for request. I don`t was shure to open new topic. meanwhile i analyze a little bit and i think i found the problem

You can try to the reproduce error

  1. Import the attached 7-Zip.xml -> click Install -> Window is OK
  2. Check all for Updates, do not download -> click Install -> Window is OK
  3. Update all -> click Install -> Window crashs

Everything is on a USB-Drive. Maybe the pathname for safe the file make the problems, because i have variabls inside.

thx

 

Informationen über das Aufrufen von JIT-Debuggen
anstelle dieses Dialogfelds finden Sie am Ende dieser Meldung.

************** Ausnahmetext **************
System.ArgumentException: Der an Icon übergebene Win32-Handle ist ungültig oder hat den falschen Typ.
   bei System.Drawing.Icon..ctor(IntPtr handle, Boolean takeOwnership)
   bei System.Drawing.Icon..ctor(IntPtr handle)
   bei System.Drawing.Icon.FromHandle(IntPtr handle)
   bei Microsoft.Win32.IconReader.GetFileIcon(String name, IconSize size, Boolean linkOverlay)
   bei Ketarin.ApplicationList.GetIcon()
   bei Ketarin.Forms.ChooseAppsToInstallDialog.OnLoad(EventArgs e)
   bei System.Windows.Forms.Form.OnCreateControl()
   bei System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   bei System.Windows.Forms.Control.CreateControl()
   bei System.Windows.Forms.Control.WmShowWindow(Message& m)
   bei System.Windows.Forms.Control.WndProc(Message& m)
   bei System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   bei System.Windows.Forms.Form.WmShowWindow(Message& m)
   bei System.Windows.Forms.Form.WndProc(Message& m)
   bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Geladene Assemblys **************
mscorlib
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.4515.0 built by: NET48REL1LAST_C.
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll.
----------------------------------------
Ketarin
    Assembly-Version: 1.8.11.0.
    Win32-Version: 1.8.11.0.
    CodeBase: file:///D:/PortableApps/Portable_Ketarin-1.8.11/Ketarin.exe.
----------------------------------------
System.Windows.Forms
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.4550.0 built by: NET48REL1LAST_C.
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll.
----------------------------------------
System
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.4536.0 built by: NET48REL1LAST_C.
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll.
----------------------------------------
System.Drawing
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.4390.0 built by: NET48REL1LAST_C.
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll.
----------------------------------------
System.Xml
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.4084.0 built by: NET48REL1.
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll.
----------------------------------------
System.Core
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.4579.0 built by: NET48REL1LAST_C.
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll.
----------------------------------------
System.Data.SQLite
    Assembly-Version: 1.0.112.0.
    Win32-Version: 1.0.112.0.
    CodeBase: file:///D:/PortableApps/Portable_Ketarin-1.8.11/System.Data.SQLite.DLL.
----------------------------------------
System.Data
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.4536.0 built by: NET48REL1LAST_C.
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll.
----------------------------------------
System.Transactions
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.4084.0 built by: NET48REL1.
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll.
----------------------------------------
System.Web
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.4494.0 built by: NET48REL1LAST_B.
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Web/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.dll.
----------------------------------------
System.Design
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.4084.0 built by: NET48REL1.
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Design/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Design.dll.
----------------------------------------
System.Configuration
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.4190.0 built by: NET48REL1LAST_B.
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll.
----------------------------------------
System.EnterpriseServices
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.4084.0 built by: NET48REL1.
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll.
----------------------------------------
System.Windows.Forms.resources
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.4084.0 built by: NET48REL1.
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_de_b77a5c561934e089/System.Windows.Forms.resources.dll.
----------------------------------------
Microsoft.GeneratedCode
    Assembly-Version: 1.0.0.0.
    Win32-Version: 4.8.4084.0 built by: NET48REL1.
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll.
----------------------------------------
System.Drawing.resources
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.4084.0 built by: NET48REL1.
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing.resources/v4.0_4.0.0.0_de_b03f5f7f11d50a3a/System.Drawing.resources.dll.
----------------------------------------
mscorlib.resources
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.4084.0 built by: NET48REL1.
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_de_b77a5c561934e089/mscorlib.resources.dll.
----------------------------------------

************** JIT-Debuggen **************
Um das JIT-Debuggen (Just-In-Time) zu aktivieren, muss in der
Konfigurationsdatei der Anwendung oder des Computers
(machine.config) der jitDebugging-Wert im Abschnitt system.windows.forms festgelegt werden.
Die Anwendung muss mit aktiviertem Debuggen kompiliert werden.

Zum Beispiel:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

Wenn das JIT-Debuggen aktiviert ist, werden alle nicht behandelten
Ausnahmen an den JIT-Debugger gesendet, der auf dem
Computer registriert ist, und nicht in diesem Dialogfeld behandelt.

 

7-Zip.xml

Link to comment
Share on other sites

Can you please tell us which version of Ketarin you're using?

This app doesn't have anything in the setup instructions, so if it's having problems it would happen regardless of whether it were downloaded or installed. 

<SetupInstructions />

I use variables in literally every path, so it's not that.

If you want to use the install capability then the setup instructions should be something like:

"{file}" /S

As for the error, I suspect it's due to the collection of date_HP as an ISO8601 date (yyyy-MM-dd) then passing it through two unnecessary functions to reformat it - dateDigitsOnly via multireplace first to remove the names and serifs from the days, then dateLeadingZero via regexreplace to unnecessarily insert a leading zero - so that releasedate will be able to be formatted...as an ISO8601 date.

Remove dateDigitsOnly, dateLeadingZero and releasedate and use this for your save in folder path:

\Software\Windows10_Starterkit\7-Zip_{version}_{date_HP}\

 

Link to comment
Share on other sites

Hi,

Version: i have think you can see in the Codeblock ->

----------------------------------------
Ketarin
    Assembly-Version: 1.8.11.0.
    Win32-Version: 1.8.11.0.
    CodeBase: file:///D:/PortableApps/Portable_Ketarin-1.8.11/Ketarin.exe.
----------------------------------------

dateDigitsOnly, dateLeadingZero and releasedate i found as example in the wiki and have think thats so OK.

Wiki Ketarin

I try how you told and give you a answer.

Link to comment
Share on other sites

The Everything apps are both written well and should work fine. I wouldn't recommend installing both the 32-bit and 64-bit versions on a device though.

Have you tried these one by one to see if it's an issue specific to a given application?

Have you watched the log as it's running to see if there's an error that may account for the issue? (CTRL+L)

Have you checked the removable drive to make sure that it's not an issue with the filesystem? ("chkdsk N: /f /r /x" from an elevated prompt where N: is the drive letter)

Is your antivirus/security software configured to intercept or whitelist applications on the removable drive? Note that the recent changes in default behavior to Windows Defender will prevent applications from running from untrusted locations (like USB) unless you either turn off Ransomware Protection or whitelist the location.

Have you checked your antivirus logs? 

Link to comment
Share on other sites

1. I only try try the x64 to install.

2. The logfile only shows something about the download.

09.11.2022 22:39:13: Update started with 1 application(s)
09.11.2022 22:39:13: Everything (x64): Replacing {version} in 'https://www.voidtools.com/Everything-{version}.x64-Setup.exe' with '1.4.1.1022'
09.11.2022 22:39:13: Everything (x64): Using referer: http://www.voidtools.com/Changes.txt
09.11.2022 22:39:14: Everything (x64): Server source file: /Everything-1.4.1.1022.x64-Setup.exe
09.11.2022 22:39:14: Everything (x64): Replacing {version} in '\Software\Windows10_Starterkit\Everything_{version}\' with '1.4.1.1022'
09.11.2022 22:39:14: Everything (x64): Determined target file name: \Software\Windows10_Starterkit\Everything_1.4.1.1022\Everything-1.4.1.1022.x64-Setup.exe
09.11.2022 22:39:14: Everything (x64): Checking if update is required...
09.11.2022 22:39:14: Everything (x64): Replacing {version} in '{version}' with '1.4.1.1022'
09.11.2022 22:39:14: Everything (x64): Update not required, {version} has not changed
09.11.2022 22:39:14: Update finished

After that i press "Install" Ketarin crashed.

3. Im not shure, but that is a absolutly new Stick. Fresh packed out of the box.

4. I deaktivated Windows Antivirus.

The curious thing is, tha if i push direct the "Install" Button, everything works fine like it must. Some more ideas?

Link to comment
Share on other sites

Please run a chkdsk, just to be sure.

There might be another security product that's interfering even though it's not an antivirus, like MBAM.

Deactivating Windows Defender/Security doesn't necessarily disable all features. Turn it back on then open the settings and go to Virus Protection, Manage ransomware protection, then turn off Controlled Folder Access.

Then (and this is important!) close and reopen Ketarin and try again.

Link to comment
Share on other sites

I wonder if the problem might be something else. I finally read the actual error message (my German is not great) and it looks like it's actually failing to extract an icon from the downloaded file. Since there's no drive letter in your download path, and the call is calling a resource from the Windows drive and not the USB drive, I suspect this might be the cause. Please change the download paths to use either the explicit drive letter (d:\) or {root}. {root} will be automatically replaced by the drive letter that Ketarin is running on, so it should have the same effect while downloading but the Icon extraction and other path-related commands will have the drive letter in addition to the path, and it'll be more portable, just in case it's a USB drive. :)

That is, change this:

\Software\Windows10_Starterkit\7-Zip_{version}_{date_HP}\

To this:

{root}Software\Windows10_Starterkit\7-Zip_{version}_{date_HP}\

And please let me know if that solves it for you.

Link to comment
Share on other sites

YOU MAKE MY DAY

Here you see, after i reopen Ketarin on USB. No version/ releasedate, no Icon.

934639948_2022-11-14041930.jpg.b980035d95ce01cc1f041f3fabdf1749.jpg

Here you see after push first "Update all" Button and after reopen Ketarin. With version/ releasedate, no Icon.

Here first i already have wonder , where the Icons but have think its not so important.

229429013_2022-11-14041930(2).jpg.767c8e8d1ccb5e4d8ecd37e5ab834e14.jpg

Here i try first direct to put the drive letter. After reopen Ketarin as you can see with version/ releasedate and Icon.

1870146099_2022-11-14041930(3).jpg.2bfcb98c774b83d28d9fc05ae3328726.jpg

At last but not least as YOU (<- my hero :)) told. I delete everything, replace the driveletter wirh {root}. After reopen Ketarin as you can see with version/ releasedate and Icon.

928034231_2022-11-14041930(4).jpg.0be92c337b6994cc7de1edcd72007d15.jpg

And now its look like it must as you see

91319135_2022-11-14043116.jpg.e621132356ac73b8b06eb6eea756ca0a.jpg

 

Really really big thx. Great job.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.