Similar Threads
1. WCELoad - Confirm file replace message
I am working with the .Net Compact Framework, Windows CE 4.2 and VS .NET 2003
I have a situation where I need to silently install a cab file on the CE
device, I cannot rely on the user pressing any yes/no buttons, so I have
created the cab so that there are no read-only files etc.
I install the cab by copying it onto the device and then remotely calling
wceload.exe, using the OpenNetCF.Desktop.Communication.RAPI class, and giving
it command line argument of /noaskdest "test.cab". Every now and then, and I
cannot seem to nail the pattern, I receive a "Confirm file replace" message
with Yes, Yes to All, No and No to All buttons. If I click Yes to All, I
don't receive the message when I attempt to install the cab again, if I click
No to All, I do, as you would expect.
I have attempted to use /noui, but that doesn't help at all.
I have attempted changing the fAskOptions value under the
HKLM\Software\Apps\Microsoft Application Installer key, to no avail.
I have exported the registry, both before and after an install and compared
the two and there nothing out of the ordinary is changed.
I have exported the filesystem information, again, before and after an
install and compared the two and, again, nothing is out of the ordinary.
I would appreciate any ideas as to why this is occurring.
2. Confirm File Replace
3. How to Supress "Confirm file replace" for all Conditions
Hi,
We are calling wceload.exe with the /noaskdest /noui flags to suppress ui.
But if a newer version of a file that we are using has been installed on the
device and If we attempt to install a cab containing the old version of the
file over the newer file we receive the "Confirm file replace" message. If
the new one is
installed over the old one, no issues pop up.
How can we Supress the "Confirm File Replace" for all Conditions.
Thanks in Advance,
Murthy
4. XP SP3 and IE7 - can't click on various links after installing SP3 - Microsoft .NET Framework
5. Replace methode, Replace Function, Stringbuilder replace, Regex Replace, Split
Hi Newsgroup,
I have given an answer in this newsgroup about a "Replace".
There came an answer on that I did not understand, so I have done some
tests.
I got the idea that someone said, that the split method and the
regex.replace method was better than the string.replace method and replace
function. I did not believe that.
I have tested this in two ways: with iteration of small strings and with a
long string. (Because that I myself use often the Stringbuilder replace,
have I added that too).
My results where comparative in spended time (not very scientific done) and
the 1 as basis.
Small strings
VB replace 4
String replace 1
Stringbuilder replace 2
Split 6
Regex 25
Long string
VB replace 170
String replace 1
Stringbuilder 2
Split 160
Regex 16
Who will check if my test program is right and get the same results?
Cor
Public Module Main
Public Sub Main()
Dim max As Integer = 20000
Dim oldstring As String = "**item1%%**item2%%**item3%%"
Dim newstring As String
Dim myarray() As String
Dim sb As New System.Text.StringBuilder
Dim StartTick As Integer = Environment.TickCount
For i As Integer = 0 To max
Next
Dim rest As Integer = Environment.TickCount - StartTick
StartTick = Environment.TickCount
For i As Integer = 0 To max
newstring = Replace(oldstring, "%%", "")
Next
Debug.WriteLine((Environment.TickCount - StartTick - rest).ToString
_
& " " & newstring, "Replace")
StartTick = Environment.TickCount
For i As Integer = 0 To max
newstring = oldstring.Replace("%%", "")
Next
Debug.WriteLine((Environment.TickCount - StartTick - rest).ToString
& _
" " & newstring, "String.Replace")
StartTick = Environment.TickCount
For i As Integer = 0 To max
sb = New System.Text.StringBuilder(oldstring)
newstring = sb.Replace("%%", "").ToString
Next
Debug.WriteLine((Environment.TickCount - StartTick - rest).ToString
& _
" " & newstring, "Stringbuilder.Replace")
StartTick = Environment.TickCount
For i As Integer = 0 To max
myarray = Split(oldstring, "%%", , CompareMethod.Text)
newstring = String.Join("", myarray)
Next
Debug.WriteLine((Environment.TickCount - StartTick - rest).ToString
& _
" " & newstring, "Split")
StartTick = Environment.TickCount
For i As Integer = 0 To max
newstring =
System.Text.RegularExpressions.Regex.Replace(oldstring, "%%", "")
Next
Debug.WriteLine((Environment.TickCount - StartTick - rest).ToString
& _
" " & newstring, "Regex.Replace")
Debug.WriteLine("----------------- now with long
string -------------")
sb = New System.Text.StringBuilder("")
For i As Integer = 0 To max
sb.Append(oldstring)
Next
oldstring = sb.ToString
StartTick = Environment.TickCount
newstring = Replace(oldstring, "%%", "")
Debug.WriteLine((Environment.TickCount - StartTick).ToString _
& " " & newstring.Substring(0, 20), "Replace")
StartTick = Environment.TickCount
newstring = oldstring.Replace("%%", "")
Debug.WriteLine((Environment.TickCount - StartTick).ToString & _
" " & newstring.Substring(0, 20), "String.Replace")
StartTick = Environment.TickCount
sb = New System.Text.StringBuilder(oldstring)
newstring = sb.Replace("%%", "").ToString
Debug.WriteLine((Environment.TickCount - StartTick).ToString & _
" " & newstring.Substring(0, 20), "Stringbuilder.Replace")
StartTick = Environment.TickCount
myarray = Split(oldstring, "%%", , CompareMethod.Text)
newstring = String.Join("", myarray)
Debug.WriteLine((Environment.TickCount - StartTick).ToString & _
" " & newstring.Substring(0, 20), "Split")
StartTick = Environment.TickCount
newstring = System.Text.RegularExpressions.Regex.Replace(oldstring,
"%%", "")
Debug.WriteLine((Environment.TickCount - StartTick).ToString & _
" " & newstring.Substring(0, 20), "Regex.Replace")
End Sub
6. SP3 install, now application won't run!
7. installing sp3 into ROM
How do I install sp3 for Compact Framework if the previous Compact Framework
already in the ROM shipped with the device?
8. installing .Net compact framework SP3