Why let me select the Installation package when update? - Advanced Installer Community
qakmak
Posts: 21
Joined: Sun Dec 22, 2013 7:20 pm

Why let me select the Installation package when update?

I'm update my project, and install it. and delete the Installation package(exe setup files).
but problem is , when I'm open my new update project, it let me select the exe setup files, and I can't find because I already delete it after update.

So is there any way can don't let it let me select the setup file? (I found when I select it, it will auto restart the computer even not display any request, it's very bad)
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Why let me select the Installation package when update?

Hello,

I'm afraid I don't fully understand what you mean. Can you please give us a detailed test case so we can try to replicate and investigate this?

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
qakmak
Posts: 21
Joined: Sun Dec 22, 2013 7:20 pm

Re: Why let me select the Installation package when update?

Sorry, now no any test case, I'll continue try it.

What I mean is. My product is a .NET program.
some component is Installed to GAC, some component installed to private folder.

I'm update it to 1.0.1 from 1.0.0.

but when I'm finish update it . I'm open my main program(it use WPF program). it open and auto restart. I don't know why.

but if I'm finish update and delete the setup.exe(package file from Advanced Installer), there is alert a dialog let me select the package file(setup.exe). it told me it does not found it.(because I'm delete it .)

I don't know why.....

Sorry to my bad English.....
qakmak
Posts: 21
Joined: Sun Dec 22, 2013 7:20 pm

Re: Why let me select the Installation package when update?

When I'm change the 1.0.0 to 1.0.1, I'm select "Major Update"
qakmak
Posts: 21
Joined: Sun Dec 22, 2013 7:20 pm

Re: Why let me select the Installation package when update?

My problem is because the wpf application is a max dialog program. So if I'm not delete the update files. it will auto restart the computer(xp os), I think maybe because my application is a Full screen. so maybe advanced installer detect it , and know user can't see the dialog, so auto restart.

but If I'm delete the update package(setup.exe). My application will stuck on the loading dialog. My application just stuck it .and if I'm go back desktop, I'll find there is has a dialog, let me select the setup.exe files.....because my application is a full screen application .So user can't see it , and there is very mess.
qakmak
Posts: 21
Joined: Sun Dec 22, 2013 7:20 pm

Re: Why let me select the Installation package when update?

I just test again, install version 1.0.0 and update to 1.0.1, and delete the update package file. and open the application.
It display let me select the update package file again. there is a picture.
update test.png
update test.png (57.81 KiB) Viewed 9751 times
qakmak
Posts: 21
Joined: Sun Dec 22, 2013 7:20 pm

Re: Why let me select the Installation package when update?

when I click Cancel. Windows display Error Dialog say not find. update.exe file....

and My application got this Error log:
014-01-08 00:16:36,890 [1] ERROR - Could not load file or assembly 'System.Data.SQLite, Version=1.0.87.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139' or one of its dependencies. System Can't file Specify file。
System.IO.FileNotFoundException: Could not load file or assembly 'System.Data.SQLite, Version=1.0.87.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139' or one of its dependencies. System Can't file Specify file。
File name: 'System.Data.SQLite, Version=1.0.87.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139'
at Player.ViewModel.Loader.CheckPathAndSql()
at Player.LoginWindow.iOf9L0OqeYjxSdQfunF()
at Player.LoginWindow.tkavIBdpd()

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
'System.Data.SQLite is a little component , using on my application , it installed on the GAC. When application startup my application will auto load it.
Last edited by qakmak on Wed Jan 08, 2014 8:06 am, edited 2 times in total.
qakmak
Posts: 21
Joined: Sun Dec 22, 2013 7:20 pm

Re: Why let me select the Installation package when update?

So I test it again. I uninstall 1.0.1.

and I install 1.0.0 again. and I find when setup finish, I can search and find the file:C:\WINDOWS\Microsoft.NET\assembly\GAC_32\System.Data.SQLite\v4.0_1.0.87.0__db937bc2d44ff139\System.Data.SQLite.dll

this time I'm not open the application.......

and I'm update the application to 1.0.1. for the test, I'm move the update package file to :C:\update.exe

and I'm click the update.exe update application to 1.0.1 and search System.Data.SQLite.dll from GAC, but I'm not found........
then I'm rename update.exe to update2.exe(for let the dialog display)


I open the application. my application display some error, and Windows display System.Data.SQLite.dll come back......

application still loading....this time it not let me select package file, and then the computer auto restart.......

when application restart....Sqlite.dll already back to the GAC.

I check my application Error log, there is details:
2014-01-08 00:47:21,281 [1] ERROR - Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object.
at Player.App.SignalExternalCommandLineArgs(IList`1 args)
at Microsoft.Shell.SingleInstance`1.LYEQAZRjG(IList`1 args)
at Microsoft.Shell.SingleInstance`1.kAjefvMsa(Object )
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
2014-01-08 00:47:21,875 [1] ERROR - Value cannot be null.
Parameter name: window
System.ArgumentNullException: Value cannot be null.
Parameter name: window
at System.Windows.Interop.WindowInteropHelper..ctor(Window window)
at System.Windows.MessageBox.Show(Window owner, String messageBoxText, String caption, MessageBoxButton button, MessageBoxImage icon)
at VodPlayer.App.J7CygvLMgPXmk3VjOJ(Object , Object , Object , MessageBoxButton , MessageBoxImage )
at Player.App.YYyG69NC4(Object )
at Player.Res.Exceptions.ExceptionPro.aPM6eIBu8(Action`1 action, Object , Object )
at Player.Res.Exceptions.ExceptionPro.ExpLog(Exception ex, Action`1 action, Boolean IsInfo, String designationMessage)
at Player.App.Wmf3axwu8(Object , Object )
at System.Windows.Threading.Dispatcher.CatchException(Exception e)
at System.Windows.Threading.Dispatcher.CatchExceptionStatic(Object source, Exception e)
at System.Windows.Threading.ExceptionWrapper.CatchException(Object source, Exception e, Delegate catchHandler)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
2014-01-08 00:47:21,968 [1] ERROR - Value cannot be null.
Parameter name: window
System.ArgumentNullException: Value cannot be null.
Parameter name: window
at Player.App.Main()
2014-01-08 00:48:31,515 [1] ERROR - Could not load file or assembly 'System.Data.SQLite, Version=1.0.87.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139' or one of its dependencies. System Can't file Specify file。
System.IO.FileNotFoundException: Could not load file or assembly 'System.Data.SQLite, Version=1.0.87.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139' or one of its dependencies. System Can't file Specify file。
File name: 'System.Data.SQLite, Version=1.0.87.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139'
at Player.ViewModel.Loader.CheckPathAndSql()
at Player.LoginWindow.iOf9L0OqeYjxSdQfunF()
at Player.LoginWindow.tkavIBdpd()

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
and I check the windows Log, there is details:
Windows Log.png
Windows Log.png (74.8 KiB) Viewed 9751 times
Last edited by qakmak on Wed Jan 08, 2014 8:05 am, edited 1 time in total.
qakmak
Posts: 21
Joined: Sun Dec 22, 2013 7:20 pm

Re: Why let me select the Installation package when update?

So now maybe you guys ask me: do you set all file property to override?

---yes. Advanced Installer ------ Resources ----- File and folder ------ select the file properties---operations---select always override exists file.

So maybe you ask , where I set the Sqlite.dll add to GAC?

---in there: Advanced Installer ------ Resources ----- Assemblies----there is a picture.
GAC.png
GAC.png (26.84 KiB) Viewed 9751 times

Maybe you ask me : a lot .net component, Is there just Sqlite.dll has this problem?

---I must to say, actually all .net dll file in GAC all gone, when I'm update my product , I must open my product, and let it open and install the update to the GAC, and let it restart the computer...... I don't know why it not update the GAC file when I'm update it (actually when I'm update the application, it just delete all GAC dll......, then when I'm open my application it add it all to GAC and restart computer, but if I'm delete the update package, it will be newer update success.....)




So... Is that a bug? how I can let it update GAC when I'm update app application, not let it update when I'm open my application?
Is this a bug ? My advanced installer version is 10.5. if It is , please fixed it soon......
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Why let me select the Installation package when update?

Hello,

I'm not sure why you encountered this behavior.
Can you please send us the .AIP (project file) and a full verbose log of the installation to support at advancedinstaller dot com so we can investigate them. Also, can you please tell us the Operating System from your machine and if you can replicate the behavior on multiple clean machines? Also, we recommend for testing virtual machines, so they can be easily restored if something is damaged.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
qakmak
Posts: 21
Joined: Sun Dec 22, 2013 7:20 pm

Re: Why let me select the Installation package when update?

Dan wrote:Hello,

I'm not sure why you encountered this behavior.
Can you please send us the .AIP (project file) and a full verbose log of the installation to support at advancedinstaller dot com so we can investigate them. Also, can you please tell us the Operating System from your machine and if you can replicate the behavior on multiple clean machines? Also, we recommend for testing virtual machines, so they can be easily restored if something is damaged.

Best regards,
Dan
Hello Dan. please tell me you email or any IM tools for send the project and log file. thanks.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Why let me select the Installation package when update?

Hi,

You can send us the requested files to support at advancedinstaller dot com.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
qakmak
Posts: 21
Joined: Sun Dec 22, 2013 7:20 pm

Re: Why let me select the Installation package when update?

Dan wrote:Hi,

You can send us the requested files to support at advancedinstaller dot com.

Best regards,
Dan
I just send it. please check. Thanks.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Why let me select the Installation package when update?

Hi,

Can you please try to enable the Do not delete extracted MSI and CAB files option for the Bootstrapper in the Media page. Please enable the related option and test on multiple clean machine and see if the behavior still persist. We recommend for testing virtual machines, so they can be easily restored if something is damaged.

Please let us know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
qakmak
Posts: 21
Joined: Sun Dec 22, 2013 7:20 pm

Re: Why let me select the Installation package when update?

Dan wrote:Hi,

Can you please try to enable the Do not delete extracted MSI and CAB files option for the Bootstrapper in the Media page. Please enable the related option and test on multiple clean machine and see if the behavior still persist. We recommend for testing virtual machines, so they can be easily restored if something is damaged.

Please let us know if that helped.

Best regards,
Dan
Thank you Dan, I'll try it and tell you result. But Is there any way to don't enable that option? Because I don't wan't to keep them.

Return to “Common Problems”